Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

basic (MathScript Class) (Windows, Not in Base Package)

Use members of the basic class to perform commonly used mathematical calculations and transformations. The basic class does not include trigonometric functions.

Function Description
abs Absolute value
angle Phase angle of complex numbers
cart2pol Cartesian to polar (cylindrical)
cart2sph Cartesian to spherical
ceil Rounds towards +inf
conj Complex conjugates
cplxpair Sorts complex numbers by conjugate pairs
cumprod Cumulative products
cumsum Cumulative sums
exp Exponential function
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
nextpow2 Next power of 2
planerot Givens rotation
pol2cart Polar (cylindrical) to Cartesian
pow2 Power of 2
prod Product
real Real part
reallog Natural logarithm of nonnegative real numbers
realpow Element-wise powers
realsqrt Square roots of nonnegative real numbers
rem Remainder
round Rounds to nearest number
sign Sign of matrix elements
sort Sorts vectors and matrices
sortrows Sorts rows of matrices
sph2cart Spherical to Cartesian
sqrt Square root function
sum Sum

Related Topics

trigonometric
advanced


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit