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);
}