![]() | Download Help (Windows Only) |
Requires: MathScript RT Module
Use members of the basic class of MathScript functions to perform commonly used mathematical calculations and transformations. The basic class does not include trigonometric functions.
Function | Description |
---|---|
abs | Absolute value |
accumproducts | Cumulative products |
accumsums | Cumulative sums |
accumtrapint | Cumulative trapezoidal integrals |
angle | Phase angles of complex numbers |
cart_to_polar | Cartesian to polar (cylindrical) |
cart_to_sphere | Cartesian to spherical |
ceil | Rounds towards +inf |
conjugate | Complex conjugates |
deg_to_rad | Converts angles |
eval | Executes scripts in a string |
evalfn | Executes a function |
evalscript | Executes scripts in a string and captures the output |
exp | Exponential function |
expm1 | Exponential function minus 1 |
factor | Prime factors |
factorial | N! |
fix | Rounds towards 0 |
floor | Rounds towards -inf |
gcd | Greatest common divisor |
imag | Imaginary part |
lcm | Least common multiple |
log | Natural logarithm |
log10 | Base 10 logarithm |
log2 | Base 2 logarithm |
max | Largest element |
min | Smallest element |
mod | Modulo |
nextpowerof2 | Next power of 2 |
peakfcn1d | Curve with maxima at 0.3 and 0.9 |
polar_to_cart | Polar (cylindrical) to Cartesian |
powerof2 | Power of 2 |
powerofreal | Element-wise powers |
prod | Product |
rad_to_deg | Converts angles |
real | Real part |
reallog | Natural logarithm of positive real numbers |
rem | Remainder |
reorderdim | Reorders the dimensions of a matrix |
reorderdiminv | Reorders dimensions of a matrix |
rotateplane | Givens rotation |
round | Rounds to nearest number |
sign | Sign of matrix elements |
sort | Sorts vectors and matrices |
sortconjugate | Sorts complex numbers by conjugate pairs |
sortrows | Sorts rows of matrices |
sphere_to_cart | Spherical to Cartesian |
sqrt | Square root function |
sqrtofreal | Square roots of positive real numbers |
sum | Sum |
Helpful
Not Helpful