Fun3D Logo
FUN3D HELP
9.3 Supported Functions and Syntax
Function Syntax Example
Logarithm Log(v)  Log(10) = 1; Log(100) = 2
Sign of number Sign(v)  Sign(-32) = -1
Sine Sin(v)  Sin(Pi/2) = 1
Hyperbolic sine Sinh(v)  
Arcsine Asin(v)  Asin(1) = Pi/2
Cosine Cos(v)  Cos(Pi/2) = 0
Hyperbolic cosine Cosh(v)  
Arccosine Acos(v)  Acos(0) = Pi/2
Tangent Tan(v)  Tan(Pi/4) = 1
Hyperbolic tangent Tanh(v)  
Arctangent Atan(v)  Atan(1) = Pi/4
Random number between 0 and 1 Rnd()  Rnd() = 0.223232
Absolute Abs(v)  Abs(-6) = 6; Abs(6) = 6
Integer value Int(v)  Int(2.45) = 2
Truncate number Trunc(v,prec = 0)  Trunc(3.12,1) = 3.1
Round to nearest integer  Round(v)  Round(3.7) = 4
Exponent Exp(base)  
Square root Sqrt(v)  Sqrt(16) = 4
Power Power(v, e) or v^e  Power(2,3) = 2^3 = 8
Number π Pi Pi = 3.14...