Logarithm Base E (Natural Logarithm) (LN)

Instruction Syntax

Bound Program Access
Built-in number for LN is 406.
LN (                                                                            
    source   : binary floating-point(8) value                                               
) :   binary floating-point(8) value which is the natural logarithm of the source           
      value                                                                     

Description:

The natural logarithm of the source operand value is computed and the result is returned.

The result is in the range:

-infinity <= LN(source) <= +infinity                                  

See floating point results from special values for additional information.

Authorization Required

  • None

Lock Enforcement

  • None

Exceptions

  • 06 Addressing
    • 0601 Space Addressing Violation
  • 0C Computation
    • 0C06 Floating-Point Overflow
    • 0C07 Floating-Point Underflow
    • 0C09 Floating-Point Invalid Operand
    • 0C0D Floating-Point Inexact Result
    • 0C0E Floating-Point Zero Divide