Environmental Engineering Reference
In-Depth Information
sqrt stands for 'square root' and is a reserved name for a function - more about
functions later.
With MATLAB
you can enter operations that are not allowed according to
®
school mathematics:
If there is not a warning, as shown, on your computer, switch on the warning
option, by:
Note that Inf is the value of the 'ans' variable. Infinity is thus a value and be
used as such:
or:
but:
NaN stands for 'Not a Number'; remember that
1=1
has no unique value. Try
also the following expressions:
Standard output has few significant digits. With
one can switch to a representation with more digits. Try it with pi now! Note
that this concerns only how values are displayed on the screen. Internally the
Search WWH ::




Custom Search