Maxscript Mathematic functions (scalar)
x^x
Raise the first number to the power given by the second number. If the first number is an integer, the result is a rounded integer.
–x
unary minus
abs x
Returns the absolute value of the number. The result is the same type as the argument.
mod x
Modulo arithmetic, the remainder when number1 is divided by number2 . The result is always a float.
ceil x
Returns the nearest whole number greater than or equal to number . The result is always a float.
floor x
Returns the nearest whole number less than or equal to number . The result is always a float.
Trigonometric Functions
MAXScript supports the following standard trigonometric functions. Angles are represented in degrees. The result is always a float.
acos x
asin x
atan x
atan2 x
cos x
cosh x
sin x
sinh x
tan x
tanhTranscendental Functions
MAXScript supports the following standard transcendental functions. The result is always a float.
exp x
Exponential function.
log x
Natural logarithm of the argument.
log10 x
Logarithm with base 10.
pow x x
First argument to the power of the second argument.
sqrt x
Square root of the argument.