Mark Wickens

LOG LN

Purpose

Returns the value of the corresponding logarithm function for the argument.

Format

LOG     (argument)
         └──┬───┘ 
   Numeric expression

LN      (argument)
         └──┬───┘ 
   Numeric expression

*The parenthesis enclosing the argument can be omitted when the argument is a numeric value of variable.

Example

LOG(2), LN(3)

Parameters

argument: Numeric expression

Explanation

Returns the value of the corresponding logarithm function value for the argument.

Sample Program

10  INPUT "INPUT NUMBER"; N
20  PRINT "LOG";N;"=";LOG N
30  PRINT "LN";N;"=";LN N
40  END

Displays logarithm function values for numeric input greater than 0.