
2 Matrices and Arra ys
realmax
Largest floatin g-point num ber,
Inf
Infinity
NaN
Not-a-number
Infinity is generated by d ividing a nonzero value by zero, or b y evaluating
well defined mathematical expressions that overflow, i.e., exceed
realmax.
Not-a-number is generated by trying to evaluate expressions like
0/0 or
Inf-Inf that do not have well defined mathematical values.
The f unction names are not reserved. It is possible to overwrite any of them
with a new variable, such as
eps = 1.e-6
and then use that value in subsequent calculations. The original function
can be restored with
clear eps
Examples of Expressions
You have alre ady seen se veral examples of MATLAB expressions. H ere are a
few more examples, and the resulting values:
rho = (1+sqrt(5))/2
rho =
1.6180
a = abs(3+4i)
a=
5
z = sqrt(besselk(4/3,r ho-i))
z=
0.3730+ 0.3214i
huge = exp(log(realmax))
huge =
1.7977e+308
2-14
Commenti su questo manuale