These are the usual arcsine, arccosine and arctangent functions, which are the inverses of the sine, cosine and tangent functions respectively.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the arcsine of x—that is, the value whose sine is x. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between
-pi/2andpi/2(inclusive).The arcsine function is defined mathematically only over the domain
-1to1. If x is outside the domain,asinsignals a domain error.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the arccosine of x—that is, the value whose cosine is x. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between
0andpi(inclusive).The arccosine function is defined mathematically only over the domain
-1to1. If x is outside the domain,acossignals a domain error.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the arctangent of x—that is, the value whose tangent is x. The value is in units of radians. Mathematically, there are infinitely many such values; the one actually returned is the one between
-pi/2andpi/2(inclusive).
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
This function computes the arctangent of y/x, but the signs of both arguments are used to determine the quadrant of the result, and x is permitted to be zero. The return value is given in radians and is in the range
-pitopi, inclusive.If x and y are coordinates of a point in the plane,
atan2returns the signed angle between the line from the origin to that point and the x-axis. Thus,atan2is useful for converting Cartesian coordinates to polar coordinates. (To compute the radial coordinate, usehypot; see Exponents and Logarithms.)If both x and y are zero,
atan2returns zero.
ISO C99 defines complex versions of the inverse trig functions.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the complex arcsine of z—that is, the value whose sine is z. The value returned is in radians.
Unlike the real-valued functions,
casinis defined for all values of z.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the complex arccosine of z—that is, the value whose cosine is z. The value returned is in radians.
Unlike the real-valued functions,
cacosis defined for all values of z.
Preliminary: | MT-Safe | AS-Safe | AC-Safe | See POSIX Safety Concepts.
These functions compute the complex arctangent of z—that is, the value whose tangent is z. The value is in units of radians.