## Log

### Function Type:

The log function is an elemental function that operates on COMPLEX and REAL
arguments.

### Function Purpose:

The log function computes the natural logarithm ( log to the base e or ln(x)) of the
argument passed to it.

### Required Arguments:

log**(x**)

The argument **x** must be of type REAL or COMPLEX.

### Optional Arguments:

There are no optional arguments.

### Examples:

The real variable x with a value of 9.87 is passed to the log function as follows:

logr = log(x)

The variable logr will then contain the value of 2.289499.

### For Additional Information and Examples see:

lecture seven

example inter2.f

## Up** one level / Home**

**
**

Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy :
jhm@cac.psu.edu