Home
last modified time | relevance | path

Searched refs:math (Results 1 – 25 of 1902) sorted by relevance

12345678910>>...77

/external/python/cpython2/Lib/test/
Dtest_math.py6 import math
71 if math.isinf(expected) and got == expected:
143 self.ftest('pi', math.pi, 3.1415926)
144 self.ftest('e', math.e, 2.7182818)
147 self.assertRaises(TypeError, math.acos)
148 self.ftest('acos(-1)', math.acos(-1), math.pi)
149 self.ftest('acos(0)', math.acos(0), math.pi/2)
150 self.ftest('acos(1)', math.acos(1), 0)
151 self.assertRaises(ValueError, math.acos, INF)
152 self.assertRaises(ValueError, math.acos, NINF)
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimalTest.java15 import java.math.BigInteger;
22 import android.icu.math.BigDecimal;
102 private static final android.icu.math.BigDecimal zero = android.icu.math.BigDecimal.ZERO;
103 private static final android.icu.math.BigDecimal one = android.icu.math.BigDecimal.ONE;
104 private static final android.icu.math.BigDecimal two = new android.icu.math.BigDecimal(2);
105 private static final android.icu.math.BigDecimal ten = android.icu.math.BigDecimal.TEN;
106 …private static final android.icu.math.BigDecimal tenlong = new android.icu.math.BigDecimal((long) …
109 private static final android.icu.math.MathContext mcdef = android.icu.math.MathContext.DEFAULT;
110 private static final android.icu.math.MathContext mc3 = new android.icu.math.MathContext(3);
111 private static final android.icu.math.MathContext mc6 = new android.icu.math.MathContext(6);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimalTest.java14 import java.math.BigInteger;
21 import com.ibm.icu.math.BigDecimal;
101 private static final com.ibm.icu.math.BigDecimal zero = com.ibm.icu.math.BigDecimal.ZERO;
102 private static final com.ibm.icu.math.BigDecimal one = com.ibm.icu.math.BigDecimal.ONE;
103 private static final com.ibm.icu.math.BigDecimal two = new com.ibm.icu.math.BigDecimal(2);
104 private static final com.ibm.icu.math.BigDecimal ten = com.ibm.icu.math.BigDecimal.TEN;
105 …private static final com.ibm.icu.math.BigDecimal tenlong = new com.ibm.icu.math.BigDecimal((long) …
108 private static final com.ibm.icu.math.MathContext mcdef = com.ibm.icu.math.MathContext.DEFAULT;
109 private static final com.ibm.icu.math.MathContext mc3 = new com.ibm.icu.math.MathContext(3);
110 private static final com.ibm.icu.math.MathContext mc6 = new com.ibm.icu.math.MathContext(6);
[all …]
/external/guava/guava-gwt/test/com/google/common/math/
DIntMathTest_gwt.java16 package com.google.common.math;
22 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testCheckedAdd()
27 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testCheckedMultiply()
32 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testCheckedPow()
37 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testCheckedSubtract()
42 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testDivByZeroAlwaysFails()
47 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testDivNonZero()
52 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testDivNonZeroExact()
57 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testFactorial()
62 com.google.common.math.IntMathTest testCase = new com.google.common.math.IntMathTest(); in testFactorialNegative()
[all …]
DBigIntegerMathTest_gwt.java16 package com.google.common.math;
22 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testBinomialOutside()
27 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testBinomialSmall()
32 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testFactorial()
37 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testFactorial0()
42 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testFactorialNegative()
47 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testIsPowerOfTwo()
52 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testLog2Ceiling()
57 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testLog2Exact()
62 …com.google.common.math.BigIntegerMathTest testCase = new com.google.common.math.BigIntegerMathTest… in testLog2Floor()
[all …]
DLongMathTest_gwt.java16 package com.google.common.math;
22 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testBinomial()
27 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testBinomialNegative()
32 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testBinomialOutside()
37 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testGCDExhaustive()
42 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testLessThanBranchFree()
47 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testLog2Exact()
52 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testLog2MatchesBigInteger()
57 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testLog2NegativeAlwaysThrows()
62 com.google.common.math.LongMathTest testCase = new com.google.common.math.LongMathTest(); in testLog2ZeroAlwaysThrows()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/math/
DBigDecimal.java6 package android.icu.math;
8 import java.math.BigInteger;
235 …public static final android.icu.math.BigDecimal ZERO = new android.icu.math.BigDecimal((long) 0); …
246 …public static final android.icu.math.BigDecimal ONE = new android.icu.math.BigDecimal((long) 1); /…
257 public static final android.icu.math.BigDecimal TEN = new android.icu.math.BigDecimal(10);
265 public static final int ROUND_CEILING = android.icu.math.MathContext.ROUND_CEILING;
272 public static final int ROUND_DOWN = android.icu.math.MathContext.ROUND_DOWN;
279 public static final int ROUND_FLOOR = android.icu.math.MathContext.ROUND_FLOOR;
286 public static final int ROUND_HALF_DOWN = android.icu.math.MathContext.ROUND_HALF_DOWN;
293 public static final int ROUND_HALF_EVEN = android.icu.math.MathContext.ROUND_HALF_EVEN;
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-math.cc38 return *(layout->math.get ()); in HB_SHAPER_DATA_ENSURE_DECLARE()
81 const OT::MATH &math = _get_math (font->face); in hb_ot_math_get_constant() local
82 return math.get_constant(constant, font); in hb_ot_math_get_constant()
98 const OT::MATH &math = _get_math (font->face); in hb_ot_math_get_glyph_italics_correction() local
99 return math.get_math_glyph_info().get_italics_correction (glyph, font); in hb_ot_math_get_glyph_italics_correction()
115 const OT::MATH &math = _get_math (font->face); in hb_ot_math_get_glyph_top_accent_attachment() local
116 return math.get_math_glyph_info().get_top_accent_attachment (glyph, font); in hb_ot_math_get_glyph_top_accent_attachment()
132 const OT::MATH &math = _get_math (face); in hb_ot_math_is_glyph_extended_shape() local
133 return math.get_math_glyph_info().is_extended_shape (glyph); in hb_ot_math_is_glyph_extended_shape()
159 const OT::MATH &math = _get_math (font->face); in hb_ot_math_get_glyph_kerning() local
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DBigDecimal.java5 package com.ibm.icu.math;
7 import java.math.BigInteger;
234 …public static final com.ibm.icu.math.BigDecimal ZERO = new com.ibm.icu.math.BigDecimal((long) 0); …
246 …public static final com.ibm.icu.math.BigDecimal ONE = new com.ibm.icu.math.BigDecimal((long) 1); /…
258 public static final com.ibm.icu.math.BigDecimal TEN = new com.ibm.icu.math.BigDecimal(10);
267 public static final int ROUND_CEILING = com.ibm.icu.math.MathContext.ROUND_CEILING;
275 public static final int ROUND_DOWN = com.ibm.icu.math.MathContext.ROUND_DOWN;
283 public static final int ROUND_FLOOR = com.ibm.icu.math.MathContext.ROUND_FLOOR;
291 public static final int ROUND_HALF_DOWN = com.ibm.icu.math.MathContext.ROUND_HALF_DOWN;
299 public static final int ROUND_HALF_EVEN = com.ibm.icu.math.MathContext.ROUND_HALF_EVEN;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java5 package com.ibm.icu.math;
7 import java.math.BigInteger;
236 …public static final com.ibm.icu.math.BigDecimal ZERO = new com.ibm.icu.math.BigDecimal((long) 0); …
248 …public static final com.ibm.icu.math.BigDecimal ONE = new com.ibm.icu.math.BigDecimal((long) 1); /…
260 public static final com.ibm.icu.math.BigDecimal TEN = new com.ibm.icu.math.BigDecimal(10);
269 public static final int ROUND_CEILING = com.ibm.icu.math.MathContext.ROUND_CEILING;
277 public static final int ROUND_DOWN = com.ibm.icu.math.MathContext.ROUND_DOWN;
285 public static final int ROUND_FLOOR = com.ibm.icu.math.MathContext.ROUND_FLOOR;
293 public static final int ROUND_HALF_DOWN = com.ibm.icu.math.MathContext.ROUND_HALF_DOWN;
301 public static final int ROUND_HALF_EVEN = com.ibm.icu.math.MathContext.ROUND_HALF_EVEN;
[all …]
/external/clang/test/CodeGenOpenCL/
Drelaxed-fpmath.cl2 // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST
3 // RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINITE
4 // RUN: %clang_cc1 %s -emit-llvm -cl-unsafe-math-optimizations -o - | FileCheck %s -check-prefix=UN…
19 // NORMAL: "no-infs-fp-math"="false"
20 // NORMAL: "no-nans-fp-math"="false"
21 // NORMAL: "unsafe-fp-math"="false"
23 // FAST: "no-infs-fp-math"="true"
24 // FAST: "no-nans-fp-math"="true"
25 // FAST: "unsafe-fp-math"="true"
27 // FINITE: "no-infs-fp-math"="true"
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Df.cpp62 boost::math::ntl::RR exp2(const boost::math::ntl::RR& x) in exp2()
67 boost::math::ntl::RR log2(const boost::math::ntl::RR& x) in log2()
72 boost::math::ntl::RR f(const boost::math::ntl::RR& x, int variant) in f()
88 const boost::math::tools::polynomial<boost::math::ntl::RR>& n, in show_extra()
89 const boost::math::tools::polynomial<boost::math::ntl::RR>& d, in show_extra()
90 const boost::math::ntl::RR& x_offset, in show_extra()
91 const boost::math::ntl::RR& y_offset, in show_extra()
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/
DAbstractScalarDifferentiableOptimizer.java18 package org.apache.commons.math.optimization.general;
20 import org.apache.commons.math.analysis.DifferentiableMultivariateRealFunction;
21 import org.apache.commons.math.analysis.MultivariateVectorialFunction;
22 import org.apache.commons.math.FunctionEvaluationException;
23 import org.apache.commons.math.MaxEvaluationsExceededException;
24 import org.apache.commons.math.MaxIterationsExceededException;
25 import org.apache.commons.math.optimization.DifferentiableMultivariateRealOptimizer;
26 import org.apache.commons.math.optimization.GoalType;
27 import org.apache.commons.math.optimization.OptimizationException;
28 import org.apache.commons.math.optimization.RealConvergenceChecker;
[all …]
DAbstractLeastSquaresOptimizer.java18 package org.apache.commons.math.optimization.general;
20 import org.apache.commons.math.FunctionEvaluationException;
21 import org.apache.commons.math.MaxEvaluationsExceededException;
22 import org.apache.commons.math.MaxIterationsExceededException;
23 import org.apache.commons.math.analysis.DifferentiableMultivariateVectorialFunction;
24 import org.apache.commons.math.analysis.MultivariateMatrixFunction;
25 import org.apache.commons.math.exception.util.LocalizedFormats;
26 import org.apache.commons.math.linear.InvalidMatrixException;
27 import org.apache.commons.math.linear.LUDecompositionImpl;
28 import org.apache.commons.math.linear.MatrixUtils;
[all …]
DGaussNewtonOptimizer.java18 package org.apache.commons.math.optimization.general;
20 import org.apache.commons.math.FunctionEvaluationException;
21 import org.apache.commons.math.exception.util.LocalizedFormats;
22 import org.apache.commons.math.linear.BlockRealMatrix;
23 import org.apache.commons.math.linear.DecompositionSolver;
24 import org.apache.commons.math.linear.InvalidMatrixException;
25 import org.apache.commons.math.linear.LUDecompositionImpl;
26 import org.apache.commons.math.linear.QRDecompositionImpl;
27 import org.apache.commons.math.linear.RealMatrix;
28 import org.apache.commons.math.optimization.OptimizationException;
[all …]
/external/clang/include/clang/Basic/
DBuiltins.def892 // Builtin math library functions
893 LIBBUILTIN(atan2, "ddd", "fne", "math.h", ALL_LANGUAGES)
894 LIBBUILTIN(atan2f, "fff", "fne", "math.h", ALL_LANGUAGES)
895 LIBBUILTIN(atan2l, "LdLdLd", "fne", "math.h", ALL_LANGUAGES)
901 LIBBUILTIN(copysign, "ddd", "fnc", "math.h", ALL_LANGUAGES)
902 LIBBUILTIN(copysignf, "fff", "fnc", "math.h", ALL_LANGUAGES)
903 LIBBUILTIN(copysignl, "LdLdLd", "fnc", "math.h", ALL_LANGUAGES)
905 LIBBUILTIN(fabs, "dd", "fnc", "math.h", ALL_LANGUAGES)
906 LIBBUILTIN(fabsf, "ff", "fnc", "math.h", ALL_LANGUAGES)
907 LIBBUILTIN(fabsl, "LdLd", "fnc", "math.h", ALL_LANGUAGES)
[all …]
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMathTest.java17 package com.google.common.math;
19 import static com.google.common.math.MathTesting.ALL_BIGINTEGER_CANDIDATES;
20 import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES;
21 import static com.google.common.math.MathTesting.POSITIVE_BIGINTEGER_CANDIDATES;
22 import static java.math.BigInteger.ONE;
23 import static java.math.BigInteger.ZERO;
24 import static java.math.RoundingMode.CEILING;
25 import static java.math.RoundingMode.DOWN;
26 import static java.math.RoundingMode.FLOOR;
27 import static java.math.RoundingMode.HALF_DOWN;
[all …]
DLongMathTest.java17 package com.google.common.math;
19 import static com.google.common.math.MathTesting.ALL_LONG_CANDIDATES;
20 import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES;
21 import static com.google.common.math.MathTesting.ALL_SAFE_ROUNDING_MODES;
22 import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES;
23 import static com.google.common.math.MathTesting.NEGATIVE_LONG_CANDIDATES;
24 import static com.google.common.math.MathTesting.POSITIVE_LONG_CANDIDATES;
25 import static java.math.BigInteger.valueOf;
26 import static java.math.RoundingMode.UNNECESSARY;
32 import java.math.BigDecimal;
[all …]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DNumberFormatICU.java11 import java.math.RoundingMode;
113 case com.ibm.icu.math.BigDecimal.ROUND_CEILING: in getRoundingMode()
116 case com.ibm.icu.math.BigDecimal.ROUND_DOWN: in getRoundingMode()
119 case com.ibm.icu.math.BigDecimal.ROUND_FLOOR: in getRoundingMode()
122 case com.ibm.icu.math.BigDecimal.ROUND_HALF_DOWN: in getRoundingMode()
125 case com.ibm.icu.math.BigDecimal.ROUND_HALF_EVEN: in getRoundingMode()
128 case com.ibm.icu.math.BigDecimal.ROUND_HALF_UP: in getRoundingMode()
131 case com.ibm.icu.math.BigDecimal.ROUND_UNNECESSARY: in getRoundingMode()
134 case com.ibm.icu.math.BigDecimal.ROUND_UP: in getRoundingMode()
210 fIcuNfmt.setRoundingMode(com.ibm.icu.math.BigDecimal.ROUND_CEILING); in setRoundingMode()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DAbstractContinuousDistribution.java17 package org.apache.commons.math.distribution;
21 import org.apache.commons.math.ConvergenceException;
22 import org.apache.commons.math.MathException;
23 import org.apache.commons.math.MathRuntimeException;
24 import org.apache.commons.math.analysis.UnivariateRealFunction;
25 import org.apache.commons.math.analysis.solvers.BrentSolver;
26 import org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils;
27 import org.apache.commons.math.FunctionEvaluationException;
28 import org.apache.commons.math.exception.util.LocalizedFormats;
29 import org.apache.commons.math.random.RandomDataImpl;
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/
DAbstractUnivariateRealOptimizer.java18 package org.apache.commons.math.optimization.univariate;
20 import org.apache.commons.math.ConvergingAlgorithmImpl;
21 import org.apache.commons.math.FunctionEvaluationException;
22 import org.apache.commons.math.MaxEvaluationsExceededException;
23 import org.apache.commons.math.MaxIterationsExceededException;
24 import org.apache.commons.math.analysis.UnivariateRealFunction;
25 import org.apache.commons.math.exception.MathUnsupportedOperationException;
26 import org.apache.commons.math.exception.NoDataException;
27 import org.apache.commons.math.exception.util.LocalizedFormats;
28 import org.apache.commons.math.optimization.GoalType;
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dfuzzy.py9 import math
33 return math.fsum(data) / number if number > 0 else None
38 return math.exp(math.fsum([math.log(d) for d in data]))
83 return (0.5 + 0.5 * math.cos((x - self.middle) / self.width_right *
84 math.pi))
86 return (0.5 + 0.5 * math.cos((x - self.middle) / self.width_left *
87 math.pi))
122 return 0.5 + 0.5 * math.cos((x - self.right) / self.width * math.pi)
157 return 0.5 + 0.5 * math.cos((x - self.left) / self.width * math.pi)
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/
DStatUtils.java17 package org.apache.commons.math.stat;
19 import org.apache.commons.math.MathRuntimeException;
20 import org.apache.commons.math.exception.util.LocalizedFormats;
21 import org.apache.commons.math.stat.descriptive.DescriptiveStatistics;
22 import org.apache.commons.math.stat.descriptive.UnivariateStatistic;
23 import org.apache.commons.math.stat.descriptive.moment.GeometricMean;
24 import org.apache.commons.math.stat.descriptive.moment.Mean;
25 import org.apache.commons.math.stat.descriptive.moment.Variance;
26 import org.apache.commons.math.stat.descriptive.rank.Max;
27 import org.apache.commons.math.stat.descriptive.rank.Min;
[all …]
/external/llvm/test/CodeGen/Mips/
Dmips16_32_9.ll47 …se" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…
48 …e" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…
49 …se" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…
Dmips16_32_10.ll56 …se" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…
57 …e" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…
58 …se" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "unsafe-f…

12345678910>>...77