/external/v8/test/mjsunit/ |
H A D | math-abs.js | 36 assertEquals(0, Math.abs(0)); 37 assertEquals(0, Math.abs(zero())); 38 assertEquals(0, Math.abs(-0)); 39 assertEquals(Infinity, Math.abs(Infinity)); 40 assertEquals(Infinity, Math.abs(-Infinity)); 41 assertEquals(NaN, Math.abs(NaN)); 42 assertEquals(NaN, Math.abs(-NaN)); 43 assertEquals('Infinity', Math.abs(Number('+Infinity')).toString()); 44 assertEquals('Infinity', Math.abs(Number('-Infinity')).toString()); 45 assertEquals('NaN', Math.abs(Na [all...] |
/external/eigen/doc/snippets/ |
H A D | Cwise_abs.cpp | 2 cout << v.abs() << endl;
|
H A D | MatrixBase_array_const.cpp | 2 cout << "the absolute values:" << endl << v.array().abs() << endl; 3 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl;
|
/external/v8/test/mjsunit/regress/ |
H A D | regress-1177518.js | 33 Math.abs = 0; 38 // uses Math.abs, Math.floor and isFinite
|
H A D | regress-1898.js | 31 Math.log(Math.min(0.1, Math.abs(x)));
|
H A D | regress-636.js | 31 value = Math.abs(1025);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
H A D | 15.8.2.1.js | 24 ECMA Section: 15.8.2.1 abs( x ) 37 var TITLE = "Math.abs()"; 49 array[item++] = new TestCase( SECTION, "Math.abs.length", 1, Math.abs.length ); 51 array[item++] = new TestCase( SECTION, "Math.abs()", Number.NaN, Math.abs() ); 52 array[item++] = new TestCase( SECTION, "Math.abs( void 0 )", Number.NaN, Math.abs(void 0) ); 53 array[item++] = new TestCase( SECTION, "Math.abs( null )", 0, Math.abs(nul [all...] |
/external/eigen/doc/examples/ |
H A D | Tutorial_ArrayClass_cwise_other.cpp | 13 cout << "a.abs() =" << endl 14 << a.abs() << endl; 15 cout << "a.abs().sqrt() =" << endl 16 << a.abs().sqrt() << endl; 17 cout << "a.min(a.abs().sqrt()) =" << endl 18 << a.min(a.abs().sqrt()) << endl;
|
/external/eigen/test/ |
H A D | nesting_ops.cpp | 30 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().array().abs().sum(), (m.transpose() * m).diagonal().array().abs().sum() ); 32 VERIFY_IS_APPROX( (m.transpose() * m).array().abs().sum(), (m.transpose() * m).array().abs().sum() );
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
H A D | NavCalculator.java | 100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); 121 double sgnDLong = 0 - (dLong / Math.abs(dLong)); 122 if (Math.abs(dLong) > 180 * 60) { 123 dLong = (360 * 60 - Math.abs(dLong)) * sgnDLong; 129 redist = Math.abs(dLong); 131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360)); 156 return Math.abs(tc); 161 return 180 - Math.abs(tc); 166 return 180 + Math.abs(tc); 171 return 360 - Math.abs(t [all...] |
H A D | Coordinate.java | 79 minsDecMins = Double.parseDouble(form.format((Math.abs(decCoordinate) - Math.abs(deg)) * 60)); 142 str = su.padNumZero(Math.abs(deg), 2); 143 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; 151 str = su.padNumZero(Math.abs(deg), 3); 152 str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad; 191 if (Math.abs(decCoordinate) > 90.0) { 197 if (Math.abs(decCoordinate) > 180) {
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
H A D | chkder.h | 32 temp = eps * abs(x[j]); 42 temp = abs(x[j]); 49 if (fvec[i] != 0. && fvecp[i] != 0. && abs(fvecp[i] - fvec[i]) >= epsf * abs(fvec[i])) 50 temp = eps * abs((fvecp[i] - fvec[i]) / eps - err[i]) / (abs(fvec[i]) + abs(fvecp[i]));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
H A D | 11.4.8.js | 86 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) { 89 return ( sign * Math.floor(Math.abs(n)) ); 95 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 99 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 108 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 111 n = sign * Math.floor( Math.abs(n) ) 124 if ( Math.abs( [all...] |
H A D | 11.7.1.js | 93 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) { 96 return ( sign * Math.floor(Math.abs(n)) ); 102 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 106 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 115 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 118 n = sign * Math.floor( Math.abs(n) ) 131 if ( Math.abs( [all...] |
H A D | 11.7.2.js | 107 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) { 110 return ( sign * Math.floor(Math.abs(n)) ); 116 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 120 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 129 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 132 n = sign * Math.floor( Math.abs(n) ) 145 if ( Math.abs( [all...] |
H A D | 11.7.3.js | 98 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY ) { 101 return ( sign * Math.floor(Math.abs(n)) ); 107 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 111 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 120 if ( Math.abs( n ) == 0 || Math.abs( n ) == Number.POSITIVE_INFINITY) { 123 n = sign * Math.floor( Math.abs(n) ) 136 if ( Math.abs( [all...] |
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/filter/ |
H A D | OptimizedErode.java | 88 if (Math.abs(h - hV) > this.talus && Math.abs(h - tmp[idxVL]) > this.talus || vertT) {
91 if (Math.abs(h - hV) <= this.talus) {
97 if (Math.abs(h - hH) > this.talus && Math.abs(h - tmp[idxHL]) > this.talus || horizT) {
100 if (Math.abs(h - hH) <= this.talus) {
|
/external/dropbear/libtommath/ |
H A D | bn_mp_rand.c | 32 d = ((mp_digit) abs (rand ())) & MP_MASK; 44 if ((res = mp_add_d (a, ((mp_digit) abs (rand ())), a)) != MP_OKAY) {
|
/external/jsilver/src/com/google/clearsilver/jsilver/functions/numeric/ |
H A D | AbsFunction.java | 23 import static java.lang.Math.abs; 36 return literalConstant(abs(arg.asNumber()), arg);
|
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
H A D | Scaling.h | 44 using std::abs; 95 if ( Dr(it.row()) < abs(it.value()) ) 96 Dr(it.row()) = abs(it.value()); 98 if ( Dc(it.col()) < abs(it.value()) ) 99 Dc(it.col()) = abs(it.value()); 121 if ( DrRes(it.row()) < abs(it.value()) ) 122 DrRes(it.row()) = abs(it.value()); 124 if ( DcRes(it.col()) < abs(it.value()) ) 125 DcRes(it.col()) = abs(it.value()); 128 DrRes.array() = (1-DrRes.array()).abs(); [all...] |
/external/llvm/unittests/Support/ |
H A D | TimeValue.cpp | 20 EXPECT_TRUE(abs(static_cast<long>(now_t - now.toEpochTime())) < 2);
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
H A D | Eigen3f.java | 148 float max = FastMath.abs(mat.m00);
149 float abs = FastMath.abs(mat.m01);
151 if (abs > max) {
152 max = abs;
154 abs = FastMath.abs(mat.m02);
155 if (abs > max) {
156 max = abs;
158 abs [all...] |
/external/webkit/Source/JavaScriptCore/wtf/ |
H A D | AVLTree.h | 144 Abstractor& abstractor() { return abs; } 156 void purge() { abs.root = null(); } 158 bool is_empty() { return abs.root == null(); } 160 AVLTree() { abs.root = null(); } 179 handle h = tree_->abs.root; 225 handle h = tree_->abs.root; 243 handle h = tree_->abs.root; 262 return depth == 0 ? tree_->abs.root : path_h[depth - 1]; 337 int cmp_k_n(key k, handle h) { return tree_->abs.compare_key_node(k, h); } 338 int cmp_n_n(handle h1, handle h2) { return tree_->abs [all...] |
/external/stlport/stlport/stl/ |
H A D | _cstdlib.h | 113 inline int abs(int __x) { return _STLP_VENDOR_CSTD::abs(__x); } function 121 # pragma function (abs) 124 //HP-UX native lib has abs() and div() functions in global namespace 131 inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); } function 143 # pragma intrinsic (abs) 151 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); } function 154 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return ::llabs(__x); } function 158 inline _STLP_LONG_LONG abs(_STLP_LONG_LONG __x) { return __x < 0 ? -__x : __x; } function 164 * problem we provide all abs overloa [all...] |
/external/eigen/test/eigen2/ |
H A D | eigen2_array.cpp | 87 Scalar mid = (m1.cwise().abs().minCoeff() + m1.cwise().abs().maxCoeff())/Scalar(2); 91 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid)) 94 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<MatrixType::Constant(rows,cols,mid)) 96 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()>=MatrixType::Constant(rows,cols,mid)) 99 VERIFY_IS_APPROX( (m1.cwise().abs().cwise()<mid).select(0,m1), m3); 102 VERIFY(((m1.cwise().abs().cwise()+1).cwise()>RealScalar(0.1)).count() == rows*cols); 103 VERIFY_IS_APPROX(((m1.cwise().abs().cwise()+1).cwise()>RealScalar(0.1)).colwise().count().template cast<int>(), RowVectorXi::Constant(cols,rows)); 104 VERIFY_IS_APPROX(((m1.cwise().abs().cwise()+1).cwise()>RealScalar(0.1)).rowwise().count().template cast<int>(), VectorXi::Constant(rows, cols)); 111 VERIFY_IS_APPROX(u.template lpNorm<Infinity>(), u.cwise().abs() [all...] |