.asin()
Anonymous contributor
Published Sep 2, 2024
Contribute to Docs
Returns the arcsine of a value, giving an angle in radians between -π/2
and π/2
for inputs ranging from -1
to 1
.
Syntax
To return the arcsine of an input value x
ranging from -1
to 1
the following syntax is used.
math.asin(x)
Example 1
In the following example, the math.asin()
function is used to return the arcsine of 1
:
import mathprint(math.asin(1))
The above code gives the following output measured in radians:
1.5707963267948966
Example 2
In the following code block, the math.asin()
is used to return the arcsine of -0.5
:
import mathprint(math.asin(-0.5))
The above code gives the following output measured in radians:
-0.5235987755982989
Codebyte Example
Run the following example that uses the math.asin()
inverse function to understand its working:
All contributors
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Python on Codecademy
- Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours - Course
Learn Python 3
Learn the basics of Python 3.12, one of the most powerful, versatile, and in-demand programming languages today.With CertificateBeginner Friendly23 hours