/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | Complex.java | 77 private final transient boolean isNaN; field in Complex 93 isNaN = Double.isNaN(real) || Double.isNaN(imaginary); in Complex() 94 isInfinite = !isNaN && in Complex() 109 if (isNaN()) { in abs() 169 if (isNaN()) { in conjugate() 211 if (isNaN() || rhs.isNaN()) { in divide() 263 if (rhs.isNaN()) { in equals() 264 return this.isNaN(); in equals() 281 if (isNaN()) { in hashCode() 313 public boolean isNaN() { in isNaN() method in Complex [all …]
|
/external/v8/test/mjsunit/ |
D | nans.js | 46 assertTrue(isNaN(doubles[0])); 47 assertTrue(isNaN(doubles[0]*2.0)); 48 assertTrue(isNaN(doubles[0] + 0.5)); 61 assertTrue(isNaN(doubles[0])); 62 assertTrue(isNaN(doubles[0]*2.0)); 63 assertTrue(isNaN(doubles[0] + 0.5)); 76 assertTrue(isNaN(floats[0])); 77 assertTrue(isNaN(floats[0]*2.0)); 78 assertTrue(isNaN(floats[0] + 0.5)); 91 assertTrue(isNaN(floats[0])); [all …]
|
D | string-charcodeat.js | 116 assertTrue(isNaN(g().charCodeAt(-1e19)), 1 + t); 117 assertTrue(isNaN(g().charCodeAt(-0x80000001)), 2 + t); 118 assertTrue(isNaN(g().charCodeAt(-0x80000000)), 3 + t); 119 assertTrue(isNaN(g().charCodeAt(-0x40000000)), 4 + t); 120 assertTrue(isNaN(g().charCodeAt(-1)), 5 + t); 121 assertTrue(isNaN(g().charCodeAt(len)), 6 + t); 122 assertTrue(isNaN(g().charCodeAt(len + 1)), 7 + t); 123 assertTrue(isNaN(g().charCodeAt(0x3fffffff)), 8 + t); 124 assertTrue(isNaN(g().charCodeAt(0x7fffffff)), 9 + t); 125 assertTrue(isNaN(g().charCodeAt(0x80000000)), 10 + t); [all …]
|
D | number-is.js | 50 assertFalse(Number.isNaN(0)); 51 assertFalse(Number.isNaN(Number.MIN_VALUE)); 52 assertFalse(Number.isNaN(Number.MAX_VALUE)); 53 assertFalse(Number.isNaN(Number.MIN_SAFE_INTEGER - 13)); 54 assertFalse(Number.isNaN(Number.MAX_SAFE_INTEGER + 23)); 55 assertTrue(Number.isNaN(Number.NaN)); 56 assertFalse(Number.isNaN(Number.POSITIVE_INFINITY)); 57 assertFalse(Number.isNaN(Number.NEGATIVE_INFINITY)); 58 assertFalse(Number.isNaN(Number.EPSILON)); 59 assertFalse(Number.isNaN(new Number(0))); [all …]
|
D | date.js | 56 assertTrue(isNaN(dOverflow.getTime())); 65 assertTrue(isNaN(dUnderflow.getTime())); 85 assertTrue(isNaN(c.getMonth())); 90 assertTrue(isNaN(d.getUTCMonth())); 96 assertTrue(isNaN(e.getDate())); 101 assertTrue(isNaN(f.getUTCDate())); 107 assertTrue(isNaN(g.getHours())); 112 assertTrue(isNaN(h.getUTCHours())); 118 assertTrue(isNaN(g.getMinutes())); 123 assertTrue(isNaN(h.getUTCHours())); [all …]
|
D | str-to-num.js | 69 assertTrue(isNaN(toNumber(" NaN "))); 195 assertTrue(isNaN(toNumber("junk")), "junk"); 196 assertTrue(isNaN(toNumber("100 junk")), "100 junk"); 197 assertTrue(isNaN(toNumber("0x100 junk")), "0x100 junk"); 198 assertTrue(isNaN(toNumber("100.0 junk")), "100.0 junk"); 199 assertTrue(isNaN(toNumber(".1e4 junk")), ".1e4 junk"); 200 assertTrue(isNaN(toNumber("Infinity junk")), "Infinity junk"); 201 assertTrue(isNaN(toNumber("1e")), "1e"); 202 assertTrue(isNaN(toNumber("1e ")), "1e_"); 203 assertTrue(isNaN(toNumber("1" + repeat('0', 1000) + 'junk')), "1e1000 junk"); [all …]
|
D | parse-int-float.js | 45 assertTrue(isNaN(parseInt('0x '))); 46 assertTrue(isNaN(parseInt('0x'))); 47 assertTrue(isNaN(parseInt('0x ', 16))); 48 assertTrue(isNaN(parseInt('0x', 16))); 95 assertTrue(isNaN(parseInt(0/0))); 96 assertTrue(isNaN(parseInt(1/0)), "parseInt Infinity"); 97 assertTrue(isNaN(parseInt(-1/0)), "parseInt -Infinity"); 99 assertTrue(isNaN(parseFloat(0/0)));
|
D | string-charat.js | 74 assertTrue(isNaN(s().charCodeAt(-1))); 75 assertTrue(isNaN(s().charCodeAt(len))); 76 assertTrue(isNaN(s().charCodeAt(slowIndexOutOfRange))); 77 assertTrue(isNaN(s().charCodeAt(1/0))); 78 assertTrue(isNaN(s().charCodeAt(-1/0))); 122 assertTrue(isNaN(o.charCodeAt(-1))); 123 assertTrue(isNaN(o.charCodeAt(-1.4))); 124 assertTrue(isNaN(o.charCodeAt(10))); 125 assertTrue(isNaN(o.charCodeAt(slowIndexOutOfRange)));
|
/external/v8/test/mjsunit/regress/ |
D | regress-2596.js | 33 assertTrue(isNaN(doubles[0])); 45 assertTrue(isNaN(boom(0))); 46 assertTrue(isNaN(boom(0))); 47 assertTrue(isNaN(boom(0))); 51 assertTrue(isNaN(boom(0))); 52 assertTrue(isNaN(boom(0))); 53 assertTrue(isNaN(boom(0)));
|
D | regress-416.js | 32 assertTrue(isNaN(new Date(1e81).getTime()), "new Date(1e81)"); 33 assertTrue(isNaN(new Date(-1e81).getTime()), "new Date(-1e81)"); 34 assertTrue(isNaN(new Date(1e81, "").getTime()), "new Date(1e81, \"\")"); 35 assertTrue(isNaN(new Date(-1e81, "").getTime()), "new Date(-1e81, \"\")"); 36 assertTrue(isNaN(new Date(Number.NaN).getTime()), "new Date(Number.NaN)"); 37 assertTrue(isNaN(new Date(Number.NaN, "").getTime()),
|
D | regress-696.js | 33 assertTrue(isNaN(Date.parse('x'))); 34 assertTrue(isNaN(Date.parse('1x'))); 35 assertTrue(isNaN(Date.parse('xT10:00:00'))); 36 assertTrue(isNaN(Date.parse('This is a relatively long string')));
|
D | regress-392.js | 31 assertTrue(isNaN((function(){return arguments++})())); 32 assertTrue(isNaN((function(){return ++arguments})())); 33 assertTrue(isNaN((function(){return arguments--})())); 34 assertTrue(isNaN((function(){return --arguments})()));
|
/external/v8/test/mjsunit/es6/ |
D | math-log2-log10.js | 29 assertTrue(isNaN(fun(NaN))); 30 assertTrue(isNaN(fun(fun))); 31 assertTrue(isNaN(fun({ toString: function() { return NaN; } }))); 32 assertTrue(isNaN(fun({ valueOf: function() { return -1; } }))); 33 assertTrue(isNaN(fun({ valueOf: function() { return "abc"; } }))); 34 assertTrue(isNaN(fun(-0.1))); 35 assertTrue(isNaN(fun(-1)));
|
D | math-log1p.js | 5 assertTrue(isNaN(Math.log1p(NaN))); 6 assertTrue(isNaN(Math.log1p(function() {}))); 7 assertTrue(isNaN(Math.log1p({ toString: function() { return NaN; } }))); 8 assertTrue(isNaN(Math.log1p({ valueOf: function() { return "abc"; } }))); 13 assertTrue(isNaN(Math.log1p(-2))); 14 assertTrue(isNaN(Math.log1p(-Infinity)));
|
D | math-hypot.js | 28 assertTrue(isNaN(Math.hypot({}))); 29 assertTrue(isNaN(Math.hypot(undefined, 1))); 30 assertTrue(isNaN(Math.hypot(1, undefined))); 31 assertTrue(isNaN(Math.hypot(Math.hypot, 1))); 54 assertTrue(isNaN(Math.hypot(1, 2, NaN))); 55 assertTrue(isNaN(Math.hypot(NaN, NaN, 4)));
|
D | math-fround.js | 10 assertTrue(isNaN(Math.fround(NaN))); 11 assertTrue(isNaN(Math.fround(function() {}))); 12 assertTrue(isNaN(Math.fround({ toString: function() { return NaN; } }))); 13 assertTrue(isNaN(Math.fround({ valueOf: function() { return "abc"; } }))); 14 assertTrue(isNaN(Math.fround(NaN))); 15 assertTrue(isNaN(Math.fround(function() {}))); 16 assertTrue(isNaN(Math.fround({ toString: function() { return NaN; } }))); 17 assertTrue(isNaN(Math.fround({ valueOf: function() { return "abc"; } })));
|
D | math-hyperbolic.js | 33 assertTrue(isNaN(fun(NaN))); 34 assertTrue(isNaN(fun("abc"))); 35 assertTrue(isNaN(fun({}))); 37 assertTrue(isNaN(fun([1, 1]))); 83 assertTrue(isNaN(Math.atanh(-x))); 84 assertTrue(isNaN(Math.atanh(x))); 100 assertTrue(isNaN(Math.acosh(x)));
|
D | math-cbrt.js | 5 assertTrue(isNaN(Math.cbrt(NaN))); 6 assertTrue(isNaN(Math.cbrt(function() {}))); 7 assertTrue(isNaN(Math.cbrt({ toString: function() { return NaN; } }))); 8 assertTrue(isNaN(Math.cbrt({ valueOf: function() { return "abc"; } })));
|
D | math-expm1.js | 7 assertTrue(isNaN(Math.expm1(NaN))); 8 assertTrue(isNaN(Math.expm1(function() {}))); 9 assertTrue(isNaN(Math.expm1({ toString: function() { return NaN; } }))); 10 assertTrue(isNaN(Math.expm1({ valueOf: function() { return "abc"; } })));
|
D | math-sign.js | 33 assertTrue(isNaN(Math.sign("abc"))); 34 assertTrue(isNaN(Math.sign({}))); 38 assertTrue(isNaN(Math.sign([1, 1])));
|
/external/v8/test/webkit/fast/js/kde/ |
D | GlobalObject-expected.txt | 37 PASS isNaN(NaN) is true 38 PASS isNaN('NaN') is true 39 PASS isNaN('1') is false 43 PASS isNaN(parseInt("Hello", 8)) is true 44 PASS isNaN(parseInt("FFF", 10)) is true 45 PASS isNaN(parseInt(".5", 10)) is true 48 PASS isNaN(parseInt()) is true 49 PASS isNaN(parseInt('')) is true 50 PASS isNaN(parseInt(' ')) is true 51 PASS isNaN(parseInt('a')) is true [all …]
|
/external/v8/test/webkit/ |
D | date-set-to-nan.js | 88 if (!isNaN(setResult)) { 94 if (!isNaN(getResult)) { 282 if (!isNaN(setResult)) { 289 if (!isNaN(getResult)) { 304 if (!isNaN(setResult)) { 311 if (!isNaN(getResult)) { 335 if (!isNaN(setResult)) { 343 if (!isNaN(getResult)) { 366 if (!isNaN(setResult)) { 375 if (!isNaN(getResult)) { [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/ |
D | Beta.java | 122 if (Double.isNaN(x) || Double.isNaN(a) || Double.isNaN(b) || (x < 0) || in regularizedBeta() 193 if (Double.isNaN(a) || Double.isNaN(b) || (a <= 0.0) || (b <= 0.0)) { in logBeta()
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | DoubleMath.java | 142 || (Double.isNaN(a) && Double.isNaN(b)); in fuzzyEquals() 167 return Booleans.compare(Double.isNaN(a), Double.isNaN(b)); in fuzzyCompare()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
D | MathUtils.java | 426 return (Float.isNaN(x) && Float.isNaN(y)) || x == y; in equals() 439 return (Float.isNaN(x) && Float.isNaN(y)) || equals(x, y, 1); in equalsIncludingNaN() 507 return isEqual && !Float.isNaN(x) && !Float.isNaN(y); in equals() 523 return (Float.isNaN(x) && Float.isNaN(y)) || equals(x, y, maxUlps); 601 return (Double.isNaN(x) && Double.isNaN(y)) || x == y; 614 return (Double.isNaN(x) && Double.isNaN(y)) || equals(x, y, 1); 711 return (Double.isNaN(x) && Double.isNaN(y)) || equals(x, y, maxUlps); 1087 if (Double.isNaN(x)) { 1101 if (Float.isNaN(x)) { 1325 if (Double.isNaN(d) || Double.isInfinite(d)) { [all …]
|