Lines Matching refs:xAsDouble
67 double xAsDouble = x.doubleValue(); in checkTrig() local
68 if (Math.abs(xAsDouble) < 1000000.0) { in checkTrig()
69 checkApprEq(x.sin().doubleValue(), Math.sin(xAsDouble), in checkTrig()
70 "sin float compare:" + xAsDouble); in checkTrig() local
71 checkApprEq(x.cos().doubleValue(), Math.cos(xAsDouble), in checkTrig()
72 "cos float compare:" + xAsDouble); in checkTrig() local
73 checkApprEq(TAN.execute(x).doubleValue(), Math.tan(xAsDouble), in checkTrig()
74 "tan float compare:" + xAsDouble); in checkTrig() local
75 checkApprEq(ATAN.execute(x).doubleValue(), Math.atan(xAsDouble), in checkTrig()
76 "atan float compare:" + xAsDouble); in checkTrig() local
78 if (Math.abs(xAsDouble) < 1.0) { in checkTrig()
79 checkApprEq(x.asin().doubleValue(), Math.asin(xAsDouble), in checkTrig()
80 "asin float compare:" + xAsDouble); in checkTrig() local
81 checkApprEq(x.acos().doubleValue(), Math.acos(xAsDouble), in checkTrig()
82 "acos float compare:" + xAsDouble); in checkTrig() local
84 "inverse(sin) compare:" + xAsDouble); in checkTrig() local
86 if (xAsDouble < 3.1415926535 && xAsDouble > 0.0) { in checkTrig()
87 checkApprEq(COSINE.execute(x).doubleValue(), Math.cos(xAsDouble), in checkTrig()
88 "deriv(sin) float compare:" + xAsDouble); in checkTrig() local
90 "deriv(sin) float compare:" + xAsDouble); in checkTrig() local
99 "Angle sum formula failed for " + xAsDouble + " + " + i); in checkTrig()
103 "sin(x)^2 + cos(x)^2 != 1:" + xAsDouble); in checkTrig()
106 "tan(atan(" + xAsDouble + ")"); in checkTrig()
113 "acos(cos):" + xAsDouble); in checkTrig() local
117 checkEq(tmp, tmp2, "Asin(sin) computations differ:" + xAsDouble); in checkTrig()
122 "acos(cos):" + xAsDouble); in checkTrig() local
126 double xAsDouble = x.doubleValue(); in checkExpLn() local
127 if (Math.abs(xAsDouble) < 10.0) { in checkExpLn()
128 checkApprEq(x.exp().doubleValue(), Math.exp(xAsDouble), in checkExpLn()
129 "exp float compare:" + xAsDouble); in checkExpLn() local
131 if (Math.abs(xAsDouble) <= 1000.0) { in checkExpLn()
132 checkEq(x, x.exp().ln(), "ln(exp) failed:" + xAsDouble); in checkExpLn()
136 "exp^2 failed:" + xAsDouble); in checkExpLn() local
138 if (xAsDouble > 0.000000001) { in checkExpLn()
139 checkApprEq(x.ln().doubleValue(), Math.log(xAsDouble), in checkExpLn()
140 "exp float compare:" + xAsDouble); in checkExpLn() local
141 checkEq(x, x.ln().exp(), "exp(ln) failed:" + xAsDouble); in checkExpLn()
143 "ln(sqrt) failed:" + xAsDouble); in checkExpLn() local
150 "ln(product) formula failed for:" + xAsDouble + "," + i); in checkExpLn()