LF Fortran 95

ASIN Function

Description

The ASIN function returns the trigonometric arcsine of a real number, in radians.

Syntax

ASIN (x)

Arguments

x is an INTENT(IN) scalar or array of type REAL and must be within the range -1 ≤ i ≤ 1 . If the argument is outside this range, an error message is printed and program execution is terminated.

Result

A REAL representation, expressed in radians, of the arcsine of x.

Example

real :: x=.5 write(*,*) asin(x) ! writes .523599