A complex calculation kernel in Java (for Calci calculator)
A complex calculation kernel in Java (for Calci calculator)
These are complex-number classes to implement complex calculation.
The content of each class is as follows:
Files are encoded in UTF8. Class Complex, Result & ParseNumber must be used together. Class Expression & Function may separate.
The simplest way to parse an expression and calculate its value is:
Expression expr = new Expression(string);
System.out.println(expr.value().val);
Parsable string examples:
-3*(6+2.5)/4E2-.7*-1.01π
fzero(x^2-x-1,1)
sqrt(4+i)/arctan(-2i-1.1)^i
An Android app using this kernel (Calci_X.X.X.apk) is provided.
You can also download this app from CoolAPK.
The present package is used in Calci 1.3.3.