Fortran Wiki asin

Description

asin(x) computes the arcsine of its x (inverse of sin(x)).

Standard

FORTRAN 77 and later, for a complex argument Fortran 2008 or later

Class

Elemental function

Syntax

result = asin(x)

Arguments

• x - The type shall be either real and a magnitude that is less than or equal to one or be complex.

Return value

The return value is of the same type and kind as x. The real part of the result is in radians and lies in the range $-\pi / 2 \leq \asin (x) \leq \pi / 2$.

Example

program test_asin
real(8) :: x = 0.866_8
x = asin(x)
end program test_asin