Home
last modified time | relevance | path

Searched refs:Dfp (Results 1 – 4 of 4) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpField.java26 public class DfpField implements Field<Dfp> {
108 private final Dfp zero;
111 private final Dfp one;
114 private final Dfp two;
117 private final Dfp sqr2;
120 private final Dfp[] sqr2Split;
123 private final Dfp sqr2Reciprocal;
126 private final Dfp sqr3;
129 private final Dfp sqr3Reciprocal;
132 private final Dfp pi;
[all …]
DDfpMath.java45 protected static Dfp[] split(final DfpField field, final String a) { in split()
46 Dfp result[] = new Dfp[2]; in split()
94 protected static Dfp[] split(final Dfp a) { in split()
95 final Dfp[] result = new Dfp[2]; in split()
96 final Dfp shift = a.multiply(a.power10K(a.getRadixDigits() / 2)); in split()
110 protected static Dfp[] splitMult(final Dfp[] a, final Dfp[] b) { in splitMult()
111 final Dfp[] result = new Dfp[2]; in splitMult()
120 if (result[0].classify() == Dfp.INFINITE || result[0].equals(result[1])) { in splitMult()
136 protected static Dfp[] splitDiv(final Dfp[] a, final Dfp[] b) { in splitDiv()
137 final Dfp[] result; in splitDiv()
[all …]
DDfp.java96 public class Dfp implements FieldElement<Dfp> { class
181 protected Dfp(final DfpField field) { in Dfp() method in Dfp
193 protected Dfp(final DfpField field, byte x) { in Dfp() method in Dfp
201 protected Dfp(final DfpField field, int x) { in Dfp() method in Dfp
209 protected Dfp(final DfpField field, long x) { in Dfp() method in Dfp
256 protected Dfp(final DfpField field, double x) { in Dfp() method in Dfp
300 Dfp xdfp = new Dfp(field, mantissa); in Dfp()
301 …xdfp = xdfp.divide(new Dfp(field, 4503599627370496l)).add(field.getOne()); // Divide by 2^52, the… in Dfp()
318 public Dfp(final Dfp d) { in Dfp() method in Dfp
330 protected Dfp(final DfpField field, final String s) { in Dfp() method in Dfp
[all …]
DDfpDec.java27 public class DfpDec extends Dfp {
72 public DfpDec(final Dfp d) { in DfpDec()
98 public Dfp newInstance() { in newInstance()
104 public Dfp newInstance(final byte x) { in newInstance()
110 public Dfp newInstance(final int x) { in newInstance()
116 public Dfp newInstance(final long x) { in newInstance()
122 public Dfp newInstance(final double x) { in newInstance()
128 public Dfp newInstance(final Dfp d) { in newInstance()
133 final Dfp result = newInstance(getZero()); in newInstance()
144 public Dfp newInstance(final String s) { in newInstance()
[all …]