MathParser

MathParser

MathParser can parse a formula into
postorder executable blocks.

It uses exactly parsing rules,
support many features and functions.

Function List

Function Syntax Description
ABS abs(x) Calculate the absolute value of x.
SIN sin(x) Calculate the sine of x.
COS cos(x) Calculate the cosine of x.
TAN tan(x) Calculate the tangent of x.
ASIN asin(x) Calculate the arcsine of x.
ACOS acos(x) Calculate the arccosine of x.
ATAN atan(x) Calculate the arctangent of x.
EXP exp(x) Calculate the exponential of x.
LN ln(x) Calculate the natural logarithm (base e) of x.
LOG log(x) Calculate the base-10 logarithm of x.
SQRT sqrt(x) Calculate the square root of x.
FLOOR floor(x) Calculate the floor of x.
CEIL ceil(x) Calculate the ceiling of x.
SGN sgn(x) Returns an integer indicating the sign of x.
FRAC frac(x) Get the fractional part of x.
TRUNC trunc(x) Get the integer part of x.
ROUND round(x[,p]) Returns x rounded to p of decimal places.
POW pow(x,y) Calculate x raised to the power of y.