Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 12/12/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

TANPI

Elemental Intrinsic Function (Generic): Produces the tangent of an argument in half revolutions.

result = TANPI (x)

x

(Input) Must be of type real. It must be in half revolutions and is treated as modulo 2.

Results

The result type and kind are the same as x. The result has a value of an approximation of the tangent of x. TANPI (X) is approximately equal to TAN (X x π).

There are no specific names for this function.

Example

TANPI (1.0) has the approximate value 0.0.