
RPBASIC-52 PROGRAMMING GUIDE
2-62
LOG
Syntax: LOG (expr)
Function: Returns the natural logarithm (base "e") of expr which must evaluate to greater than zero. Calculated
to seven significant digits.
Mode: Command, run
Use: PRINT LOG (COS(0))
Cards: All
ERRORS
ARITH. UNDERFLOW expr or result is less than RPBASIC-52's smallest floating-point value of ± 1E-127
ARITH. OVERFLOW expr or result is greater than RPBASIC-52's largest floating point value of ±
.99999999E+127
BAD ARGUMENT Attempt to take LOG() of zero
EXAMPLE
100 PRINT EXP(-200), LOG(1.383901E-87)
>run
1.383901 E-87 -200
Komentáře k této Příručce