Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 81

RPBASIC-52 PROGRAMMING GUIDE
2-62
LOG
Syntax:
L O G (expr)
Function:
Returns the n atural logarithm (base "e") of expr which must evaluate to greater than zero. Calculated
to seven significant digits.
Mode:
Comm and, run
Use:
PRINT LOG (COS(0 ))
Cards:
All
ERRORS
A R I T H . U N D E R F L O W
expr or result is less than RPBASIC-52's smallest floating-point value of ± 1E-127
A R I T H . O V E R F L O W
expr or result is greater than R PBA SIC-52's largest floatin g point value of ±
.99999999E+127
B A D A R G U M E N T
Attemp t to take LO G() of zero
EXAMPLE
100
PRINT EXP(-200), LOG(1.383901E-87)
>run
1.383901 E-87
-200