Javatpoint Logo
Javatpoint Logo

PHP atan() Function

PHP atan() function is used to solve the trigonometry problems. It returns arc tangent of arg as a numeric value between Pi/2 and pi/2 radians.

Syntax:

Parameter Description Required/Optional
arg Specify an argument to process. Required

Example 1

Output:

Passing number is :0.5
By using 'atan()' function your number is :0.46364760900081

Example 2

Output:

Passing number is :-0.5
By using 'atan()' function your number is :-0.46364760900081

Example 3

Output:

Your passing number is :5
By using 'atan()' function your number is :1.373400766945	

Example 4

Output:

Your passing number is :-5
By using 'atan()' function your number is :-1.373400766945

Example 5

Output:

Your passing number is :200
By using 'atan()' function your number is :1.5657963684609

Example 6

Output:

Your passing number is :-200
By using 'atan()' function your number is :-1.5657963684609

Example 7

Output:

passing number (3*pi()/2) is: 4.7123889803847
By using 'atan()' function your number is :1.3616916829712

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