Easy Tutorial
❮ Ref Math Prod Python Att List Reverse ❯

Python3 asin() Function

Python3 Numbers


Description

The asin() function returns the arc sine of x in radians.


Syntax

Here is the syntax for the asin() method:

import math

math.asin(x)

Note: The asin() function cannot be accessed directly; it requires importing the math module and calling this method via the math static object.


Parameters


Return Value

Returns the arc sine of x in radians.


Example

The following example demonstrates the use of the asin() method:

#!/usr/bin/python3
import math

print("asin(0.64) : ", math.asin(0.64))
print("asin(0) : ", math.asin(0))
print("asin(-1) : ", math.asin(-1))
print("asin(1) : ", math.asin(1))

The output of the above example is:

asin(0.64) :  0.694498265626556
asin(0) :  0.0
asin(-1) :  -1.5707963267948966
asin(1) :  1.5707963267948966

Python3 Numbers

❮ Ref Math Prod Python Att List Reverse ❯