Home
last modified time | relevance | path

Searched refs:newDfp (Results 1 – 11 of 11) sorted by relevance

/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/dfp/
H A DDfpTest.java46 pinf = field.newDfp("1").divide(field.newDfp("0")); in setUp()
47 ninf = field.newDfp("-1").divide(field.newDfp("0")); in setUp()
48 nan = field.newDfp("0").divide(field.newDfp("0")); in setUp()
352 test(field.newDfp("-0").add(field.newDfp("-0")), in testAdd()
356 test(field.newDfp("0").add(field.newDfp("-0")), in testAdd()
360 test(field.newDfp("-0").add(field.newDfp("0")), in testAdd()
364 test(field.newDfp("0").add(field.newDfp("0")), in testAdd()
963 test(field.newDfp("0").divide(field.newDfp("0")), in testDivide()
967 test(field.newDfp("1").divide(field.newDfp("0")), in testDivide()
983 test(field.newDfp("1").divide(field.newDfp("3")), in testDivide()
[all …]
H A DDfpMathTest.java37 pinf = factory.newDfp("1").divide(factory.newDfp("0")); in setUp()
38 ninf = factory.newDfp("-1").divide(factory.newDfp("0")); in setUp()
39 nan = factory.newDfp("0").divide(factory.newDfp("0")); in setUp()
81 test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("0")), in testPow()
85 test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("-0")), in testPow()
89 test(DfpMath.pow(factory.newDfp("2"), factory.newDfp("0")), in testPow()
93 test(DfpMath.pow(factory.newDfp("-2"), factory.newDfp("-0")), in testPow()
118 test(DfpMath.pow(factory.newDfp("0"), factory.newDfp("1")), in testPow()
122 test(DfpMath.pow(factory.newDfp("-0"), factory.newDfp("1")), in testPow()
126 test(DfpMath.pow(factory.newDfp("2"), factory.newDfp("1")), in testPow()
[all …]
H A DBracketingNthOrderBrentSolverDFPTest.java52 field.newDfp(1.0e-20), 20); in testConvergenceOnFunctionAccuracy()
65 Dfp result = solver.solve(20, f, field.newDfp(0.2), field.newDfp(0.9), in testConvergenceOnFunctionAccuracy()
66 field.newDfp(0.4), AllowedSolution.BELOW_SIDE); in testConvergenceOnFunctionAccuracy()
70 result = solver.solve(20, f, field.newDfp(-0.9), field.newDfp(-0.2), in testConvergenceOnFunctionAccuracy()
71 field.newDfp(-0.4), AllowedSolution.ABOVE_SIDE); in testConvergenceOnFunctionAccuracy()
93 return DfpMath.pow(x, 5).add(x).subtract(field.newDfp(10000)); in testNeta()
105 return DfpMath.exp(x).add(x).subtract(field.newDfp(20)); in testNeta()
129 Dfp xResult = solver.solve(maxEval, f, field.newDfp(min), field.newDfp(max), in check()
161 absoluteAccuracy = field.newDfp(1.0e-45); in setUp()
162 relativeAccuracy = field.newDfp(1.0e-45); in setUp()
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/analysis/solvers/
H A DFieldBracketingNthOrderBrentSolverTest.java68 Dfp result = solver.solve(20, f, field.newDfp(0.2), field.newDfp(0.9), in testConvergenceOnFunctionAccuracy()
69 field.newDfp(0.4), AllowedSolution.BELOW_SIDE); in testConvergenceOnFunctionAccuracy()
73 result = solver.solve(20, f, field.newDfp(-0.9), field.newDfp(-0.2), in testConvergenceOnFunctionAccuracy()
74 field.newDfp(-0.4), AllowedSolution.ABOVE_SIDE); in testConvergenceOnFunctionAccuracy()
96 return DfpMath.pow(x, 5).add(x).subtract(field.newDfp(10000)); in testNeta()
108 return DfpMath.exp(x).add(x).subtract(field.newDfp(20)); in testNeta()
114 return DfpMath.log(x).add(x.sqrt()).subtract(field.newDfp(5)); in testNeta()
132 Dfp xResult = solver.solve(maxEval, f, field.newDfp(min), field.newDfp(max), in check()
164 absoluteAccuracy = field.newDfp(1.0e-45); in setUp()
165 relativeAccuracy = field.newDfp(1.0e-45); in setUp()
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/util/
H A DFastMathTest.java265 …double errulp = field.newDfp(tst).subtract(DfpMath.log(field.newDfp(x))).divide(field.newDfp(ulp))… in testLogAccuracy()
289 …ouble errulp = field.newDfp(tst).subtract(DfpMath.log(field.newDfp(x)).divide(DfpMath.log(field.ne… in testLog10Accuracy()
757 …double errulp = field.newDfp(tst).subtract(DfpMath.pow(field.newDfp(x), field.newDfp(y))).divide(f…
784 …double errulp = field.newDfp(tst).subtract(DfpMath.exp(field.newDfp(x))).divide(field.newDfp(ulp))…
813 …double errulp = field.newDfp(tst).subtract(DfpMath.sin(field.newDfp(x))).divide(field.newDfp(ulp))…
842 …double errulp = field.newDfp(tst).subtract(DfpMath.cos(field.newDfp(x))).divide(field.newDfp(ulp))…
871 …double errulp = field.newDfp(tst).subtract(DfpMath.tan(field.newDfp(x))).divide(field.newDfp(ulp))…
1088 …double errulp = field.newDfp(tst).subtract(sinh(field.newDfp(x))).divide(field.newDfp(ulp)).toDoub…
1110 …double errulp = field.newDfp(tst).subtract(cosh(field.newDfp(x))).divide(field.newDfp(ulp)).toDoub…
1132 …double errulp = field.newDfp(tst).subtract(tanh(field.newDfp(x))).divide(field.newDfp(ulp)).toDoub…
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/analysis/interpolation/
H A DFieldHermiteInterpolatorTest.java107 Dfp step = field.getOne().divide(field.newDfp(10)); in testRandomPolynomialsValuesOnly()
110 Dfp x = field.newDfp(j).multiply(step); in testRandomPolynomialsValuesOnly()
113 values[k] = field.newDfp(p[k].value(x.getReal())); in testRandomPolynomialsValuesOnly()
119 Dfp x = field.newDfp(j).multiply(step); in testRandomPolynomialsValuesOnly()
151 Dfp step = field.getOne().divide(field.newDfp(10)); in testRandomPolynomialsFirstDerivative()
154 Dfp x = field.newDfp(j).multiply(step); in testRandomPolynomialsFirstDerivative()
158 values[k] = field.newDfp(p[k].value(x.getReal())); in testRandomPolynomialsFirstDerivative()
164 Dfp h = step.divide(field.newDfp(100000)); in testRandomPolynomialsFirstDerivative()
166 Dfp x = field.newDfp(j).multiply(step); in testRandomPolynomialsFirstDerivative()
191 for (Dfp x = field.newDfp(0.1); x.getReal() < 2.9; x = x.add(0.01)) { in testSine()
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/geometry/euclidean/threed/
H A DFieldRotationDfpTest.java555 field.newDfp(0.1),
557 field.newDfp(0.3));
577 field.newDfp(0.1),
998 return new FieldRotation<Dfp>(field.newDfp(q0),
999 field.newDfp(q1),
1000 field.newDfp(q2),
1001 field.newDfp(q3),
1010 mds[i][j] = field.newDfp(m[i][j]);
1018 return new FieldVector3D<Dfp>(field.newDfp(x), field.newDfp(y), field.newDfp(z));
1023 return new FieldVector3D<Dfp>(field.newDfp(x), field.newDfp(y), field.newDfp(z));
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/dfp/
H A DDfpField.java336 public Dfp newDfp() { in newDfp() method in DfpField
344 public Dfp newDfp(final byte x) { in newDfp() method in DfpField
352 public Dfp newDfp(final int x) { in newDfp() method in DfpField
360 public Dfp newDfp(final long x) { in newDfp() method in DfpField
368 public Dfp newDfp(final double x) { in newDfp() method in DfpField
376 public Dfp newDfp(Dfp d) { in newDfp() method in DfpField
384 public Dfp newDfp(final String s) { in newDfp() method in DfpField
394 public Dfp newDfp(final byte sign, final byte nans) { in newDfp() method in DfpField
H A DDfpMath.java75 result[0] = field.newDfp(new String(buf, 0, sp)); in split()
84 result[1] = field.newDfp(new String(buf)); in split()
H A DDfp.java625 return field.newDfp(sig, code); in newInstance()
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/analysis/function/
H A DSincTest.java35 Dfp dfpX = new DfpField(25).newDfp(x); in testShortcut()
109 Dfp dfpX = new DfpField(25).newDfp(x); in testDerivativeShortcut()