#
Fortran Wiki

tan

## Description

`tan(x)`

computes the tangent of `x`

.

## Standard

FORTRAN 77 and later. For a complex argument, Fortran 2008 or later.

## Class

Elemental function

## Syntax

`result = tan(x)`

## Arguments

`x`

- The type shall be `real`

or `complex`

.

## Return value

The return value has same type and kind as X.

## Example

```
program test_tan
real(8) :: x = 0.165_8
x = tan(x)
end program test_tan
```

## See also

atan, cos, sin

Revised on September 19, 2010 10:22:14
by

Jason Blevins
(174.101.53.244)
(520 characters / 0.0 pages)