Javatpoint Logo
Javatpoint Logo

PHP asin() Function

The asin() function is predefined trigonometry PHP function. It is used to calculate the trigonometry problems. It returns arc sine of a number between -1 and 1.

Syntax:

Parameter Description Required/Optional
number Specify a number between -1 to 1 Required

Note: asin(1) returns the value of Pi/2.

Example1

Output:

Your number is : 0
By using 'asin()' function your number is :0

Example2

Output:

Your number is : 1
By using 'asin()' function your number is :1.5707963267949

Example3

Output:

Your number is : -1
By using 'asin()' function your number is :-1.5707963267949

Example4

Output:

Your number is : -0.4
By using 'asin()' function your number is :-0.41151684606749

Example5

Output:

Your number is : 0.64
By using 'asin()' function your number is :0.69449826562656

Example6

Output:

Your number is : 2
By using 'asin()' function your number is :NAN

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA