
UNIVERSAL FORMULA PARSER (USED IN SOME EDM AND ESD MODULES) - SYNTHAX AND SUPPORTED FUNCTIONS
---------------------------------------------------------------------------------------------

SUPPORTED FUNCTIONS AND CONSTANTS
---------------------------------

Function and parameter names are NOT case-sensitive.

The following functions are recognized, in addition to the six standard math operators +,-,*,/,^,% :

-Sin
-Cos
-Tan
-Asin
-Acos
-Atan
-Arg   (two arguments, angle of x, y in Radians, from -PI to PI)
-Sinc  (normalized cardinal sine i.e sin(PI*x)/(PI*x))
-Sinh
-Cosh
-Tanh
-Exp   (equivalent to e^x)
-Exp2  (equivalent to 2^x)
-Exp10 (equivalent to 10^x)
-Log   (base e logarithm)
-Ln    (base e logarithm)
-Log2  (base 2 logarithm)
-Log10 (base 10 logarithm)
-Sqrt
-Floor
-Ceil
-Abs
-Pow   (two arguments, equivalent to x^y)
-Hypot (two arguments, equivalent to sqrt(x*x+y*y))
-Mod   (two arguments, modulus, equivalent to a % b)
-Sgn   (-1 if x <0, +1 otherwise)
-Min   (minimum of two arguments)
-Max   (maximum of two arguments)
-Rnd   (two arguments, random number between min and max)
-Hann  (Hann window i.e risen cosine (cos(PI*x)+1)/2, for x clamped between -1 and 1)
-Saw   (saw(x), signed sawtooth waveform of unity period)
-Tri   (tri(x), signed triangular waveform of unity period)
-Squ   (squ(x,w), signed square waveform of unity period, w [0,1] is pulse width)
   

The following functions in Turns are also available, for compatibility with EDM and ESD packs:

-Turns (two arguments, angle of x,y in Turns, where one turn is 360 degrees or 2PI)
-Cost  (cosine of an angle in Turns)
-Sint  (sine of an angle in Turns)
-Tant  (tangent of an angle in Turns)

The following universal constants are recognized:

-PI  (3.141592653589...)
-PI2 (2*PI)
-PIH (PI/2)
-E   (2.718281828459...)


NOTE: individual modules can specify further custom constants or parameters if needed, please refer to their documentation.



