Functions 3D: Keywords

Operators

  • + Addition
  • - Subtraction
  • * Multiplication
  • / Division
  • ^ Exponentiation

Variables & Constants

  • x Variable
  • y Variable
  • pi 3.141592653589793
  • e 2.718281828459045
  • phi 1.618033988749895
  • rand A random number (0<=rand<1)

Standard Functions

  • abs(x) Absolute Value
  • sign(x) if x>0 then 1, if x<0 then -1 else 0
  • log(x) Natural Logarithm
  • sqr(x) x^2
  • sqrt(x) x^(1/2)
  • exp(x) e^x

Trigonometric Functions

  • sin(x) Sine
  • cos(x) Cosine
  • tan(x) Tangent
  • cot(x) Cotangent
  • sec(x) Secant
  • csc(x) Cosecant
  • asin(x) Inverse Sine
  • acos(x) Inverse Cosine
  • atan(x) Inverse Tangent
  • acot(x) Inverse Cotangent
  • asec(x) Inverse Secant
  • acsc(x) Inverse Cosecant
  • sinh(x) Hyperbolic Sine
  • cosh(x) Hyperbolic Cosine
  • tanh(x) Hyperbolic Tangent
  • coth(x) Hyperbolic Cotangent
  • sech(x) Hyperbolic Secant
  • csch(x) Hyperbolic Cosecant
  • asinh(x) Inverse Hyperbolic Sine
  • acosh(x) Inverse Hyperbolic Cosine
  • atanh(x) Inverse Hyperbolic Tangent
  • acoth(x) Inverse Hyperbolic Cotangent
  • asech(x) Inverse Hyperbolic Secant
  • acsch(x) Inverse Hyperbolic Cosecant

See some example functions.