Borland C++ reference

asin, asinl

raw OCR

Calculates the arc sine.

Defined in header <math.h>

Syntax

Real versions:                             Complex version:
#include <math.h>                          #include <complex.h>
double asin(double x);                     complex  asin(complex x);
long double asinl(long double x);

Portability

DOSUNIXWindowsANSI CC++ only
asinI ■■
Real asin ■■■■
Complex asin ■■■

Remarks

asin of a real argument returns the arc sine of the input value.

asin I is the long double version; it takes a long double argument and returns a long double result.

Real arguments to asin and asin! must be in the range -1 to 1, or else asin and asinI return NAN and sets the global variable errno to

EDOM Domain error

The complex inverse sine is defined by

asin(z) = -/ * logdi *z + sqrt(l -z^))

Return value

asin and asin! of a real argument return a value in the range -pi/2 to pi/2.

Error handling for these functions can be modified through the functions matherr and _mattierrl.

See also

Example

iinclude <stdio.h>
#include <math.h>

int main(void)
{
   double result, x =   .5;
   result = asin(x);
   printfC'The arc sin of %lf is %lf\n", x, result);
return!

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.

Extraction notes

  • heading `asin, asini` read as `asin, asinl`