exp(x)
Exponential function
|
sin(x)
|
|
log(x)|
|
Natural logarithm
|
tan(x)
|
|
log10(x)
|
Common logarithm
|
acos(x)
|
cos−1(x)
|
abs(x)
|
Absolute value
|
asin(x)
|
sin−1(x)
|
angle(x)
|
Phase of a complex number (rad)
|
atan(x)
|
‐ π/2 ≤ tan−1(x) ≤ π/2
|
sqrt(x)
|
Square root
|
atan2(y,x)
|
‐ π ≤ tan−1(y/x) ≤ π
|
real(x)
|
Real part
|
cosh(x)
|
(ex + e−x)/2
|
imag(x)
|
Imaginary part
|
sinh(x)
|
(ex − e−x)/2
|
conj(x)
|
Complex conjugate
|
tanh(x)
|
(ex − e−x)/(ex + e−x)
|
round(x)
|
The nearest integer (round‐off)
|
acosh(x)
|
cosh−1(x)
|
fix(x)
|
The nearest integer toward 0
|
asinh(x)
|
sinh−1(x)
|
floor(x)
|
The greatest integer ≤x
|
atanh(x)
|
tanh−1(x)
|
ceil(x)
|
The smallest integer ≥x
|
max
|
Maximum and its index
|
sign(x)
|
1 (positive)/0/−1 (negative)
|
min
|
Minimum and its index
|
mod(y,x)
|
Remainder of y/x
|
sum
|
Sum
|
rem(y,x)
|
Remainder of y/x
|
prod
|
Product
|
eval(f)
|
Evaluate an expression
|
norm
|
Norm
|
feval(f,a)
|
Function evaluation
|
sort
|
Sort in the ascending order
|
polyval
|
Value of a polynomial function
|
clock
|
Present time
|
poly
|
Polynomial with given roots
|
find
|
Index of element(s) satisfying given condition
|
roots
|
Roots of polynomial
|
flops(0)
|
Reset the flops count to zero
|
tic
|
Start a stopwatch timer
|
flops
|
Cumulative # of floating point operations (no longer available)
|
toc
|
Read the stopwatch timer (elapsed time from tic)
|
date
|
Present date
|
magic
|
Magic square
|
|
Reserved variables with special meaning
|
i, j
|
|
pi
|
π
|
eps
|
Machine epsilon
|
Inf, inf
|
Largest number (∞)
|
realmax, realmin
|
Largest/smallest positive number
|
NaN
|
Not_a_Number (undetermined)
|
end
|
The end of for‐loop or if, while, case statement or an array index
|
break
|