Many common elementary functions such as sqrt, exp, log, sin, cos, tan,
asin, acos, and atan are built in the interpreter
can be used in the expressions directly. For example, sqrt is the name
of square root function. To find the square root of
>> sqrt(6^2 + 8^2)
10
The built-in name for exponential function
is exp. To evaluate
we should write exp(-0.5) instead of e^(-0.5). Although
e^(-0.5) would in theory give the same answer, it's computed
differently and might be
less accurate.
log is the name of the natural logarithm function
.
oz
2009-12-22