Introduction to BASIC   Logarithmic Functions

Logarithmic Functions

BASIC has the logarithmic function of base 10 LOG10(x),The logarithmic function of base 2 LOG2(x),and the natural logarithmic function LOG(x) of base e =2.71828....

Any logarithmic function of another base can be defined as follows
Example.

10 DEF log3(x)=LOG(x)/LOG(3)
20 PRINT log3(8)
30 END



[Note]
The natural exponential function is EXP(x).