Search in sources :

Example 1 with Apcomplex

use of org.apfloat.Apcomplex in project symja_android_library by axkr.

the class ComplexSym method apcomplexValue.

public Apcomplex apcomplexValue(long precision) {
    Apfloat real = new Apfloat(fReal.toBigNumerator(), precision).divide(new Apfloat(fReal.toBigDenominator(), precision));
    Apfloat imag = new Apfloat(fImaginary.toBigNumerator(), precision).divide(new Apfloat(fImaginary.toBigDenominator(), precision));
    return new Apcomplex(real, imag);
}
Also used : Apcomplex(org.apfloat.Apcomplex) Apfloat(org.apfloat.Apfloat)

Aggregations

Apcomplex (org.apfloat.Apcomplex)1 Apfloat (org.apfloat.Apfloat)1