C Standard Libraries C++

asin()

Declaration

double asin(double dX);

Description

This function returns the inverse sine of the passed-in argument.

Overloads

float asin(float);
double asin(double);
long double asin(long double);

Related Functions

float asinf(float);
long double asinl(long double);

* Note: Since C does not allow function overloading, these other versions of this function exist.

Domain

[-1.0, 1.0]

Range

[-Π/2, Π/2]

Periodicity

None

Symmetry

Origin

Asymptotes

None





Example

#include <iostream>
#include <cmath>

int main() {
    using namespace std;

    double dX = -.4;
    cout << "x = " << dX << "  asin(x) = " << asin(dX) << endl;

    dX = 0.8;
    cout << "x = " << dX << "  asin(x) = " << asin(dX) << endl;

    return 0;
}

Output

asin() Output
 

© 2007–2024 XoaX.net LLC. All rights reserved.