asin()

Returns the inverse sine of the argument in radians.

Syntax

asin(n)

Example 1

Use asin() to return the inverse sine of 0.0:

#include <iostream>
#include <cmath>
int main() {
double x = 0.0;
double result;
result = std::asin(x);
std::cout << result << " radians" << "\n";
// Output: 1.5708 radians
}
Edit this page on GitHub

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn C++ on Codecademy

Edit this page on GitHub

Contributors