Hello There!
Alternative to Agrahams ExpressionEvaluator Library,
I have just recently converted my evaluator code from B4p to B4a as my start coding for Android.
Function sample use: answer=evaluate.MATHTEXT(txtinp1.Text)
Currently supports the following:
Operators in precedence order are
! : factorial (170 maximum)
^ : exponent
* / mod : multiply, divide and modulus,
+ - : add and subtract
Functions supported are:
COS(r), SIN(r), TAN(r), ACOS(n), ASIN(n), ATAN(n) : radians
COSD(d), SIND(d), TAND(d), ACOSD(n), ASIND(n), ATAND(n) : degrees
LN(n)base e, LOG(n)base 10,
SQRT(n), INT(n),& ABS(n)
Constants recognised are
CPI : Pi
CE : Ex
Also supports Eng'g numbers input like "1.255E-12", "1.255E+12", or...