Mathematical Function Parser
 

 
Texture Maker's Parser supports the following functions:

+ (add), - (subtract), * (multiply), / (divide), ^ (power),
COS, SIN, SINH, COSH, TAN, COTAN, ARCTAN, ARG,
EXP, LN, LOG10, LOG2, LOGN,
SQRT, SQR, POWER, INTPOWER,
MIN, MAX, ABS, TRUNC, INT, CEIL, FLOOR,FRAC
HEAV (heav(x) is =1 for x>0 and =0 for x<=0),
SIGN (sign(x) is 1 for x>1, 0 for x=0, -1 for x<0),
ZERO (zero(x) is 0 for x=0, 1 for x<>0),
FRACONE (fracone(x) is 1 for x=[1,2,3,..] else frac(x)),
PH (ph(x) = x - 2*pi*round(x/2/pi)),
RND (rnd(x) = int(x) * Random),
RANDOM (random(X) = Random; the argument X is not used)
BOUNCE (bounce(x) = clip x at 0 and 1 until it is in [0..1])
ANGLE (x,y) = returns the angle of the vector (x,y)

Examples (e.g. for the function Generator/Expression):

X^2+Y^2
X+Y
X+Y+Cos(X*2*Pi)/20+Sin(Y*2*Pi)/20
Sin(2*Pi*(X+Sin((Y-X)*2*Pi)))*0.49+0.5
Sin(Pi*Y)+Cos(Pi*X*2)/5
Sin(Pi*Y)+Cos(Pi*X*2)/5
Sin(X*Pi*(0.5+Rnd(1)/2))+Sin(Y*Pi*(0.5+Rnd(1)/2))

Hint: The parser returns zero for invalid results.