[UP]


Manual Reference Pages  - log (3)

NAME

LOG(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Logarithm function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class

SYNTAX

result = LOG(X)

DESCRIPTION

LOG(X) computes the natural logarithm of X, i.e. the logarithm to the base "e".

ARGUMENTS

X - The type shall be REAL or COMPLEX.

RETURN VALUE

The return value is of type REAL or COMPLEX. The kind type parameter is the same as X. If X is COMPLEX, the imaginary part OMEGA is in the range

-PI < OMEGA <= PI.

EXAMPLE

Sample program:

   program demo_log
     real :: x = 2.7182818284590451_8
     complex :: z = (1.0, 2.0)
     x = log(x)    ! will yield (approximately) 1
     z = log(z)
   end program demo_log

STANDARD

[[FORTRAN 77]] and later

CLASS

[[Elemental procedure|Elemental function]]


log (3) March 18, 2019
Generated by manServer 1.08 from be78258c-b908-4c86-9542-8e6dcf5e7325 using man macros.