#
Fortran Wiki

log

## Description

`log(x)`

computes the logarithm of `x`

.

## Standard

FORTRAN 77 and later

## Class

Elemental function

## Syntax

`result = log(x)`

## 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`

.

## Example

```
program test_log
real(8) :: x = 1.0_8
complex :: z = (1.0, 2.0)
x = log(x)
z = log(z)
end program test_log
```

Revised on April 30, 2009 22:51:47
by

Jason Blevins
(71.70.142.190)
(546 characters / 0.0 pages)