Keil Logo

asin

Summary
#include <math.h>

double asin (
  double x);   /* number to calculate arc sine of */
Description

The asin function calculates the arc sine of the floating-point number x.

Return Value

The asin function returns the arc sine of x.

For x ∈ [-1, 1], asin(x) → [-π/2, π/2].
For x ∈ (-∞, -1) ∪ (1, ∞), asin(x)NaN.

See Also

acos, atan, atan2

Example
#include <math.h>
#include <stdio.h> /* for printf */

void tst_asin (void) {
  float x;
  float y;

  for (x = -1.0; x <= 1.0; x += 0.1) {
    y = asin (x);
    printf ("ASIN(%f) = %f\n", x, y);
  }
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.