PHP atan() FunctionPHP 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:
Example 1Output: Passing number is :0.5 By using 'atan()' function your number is :0.46364760900081 Example 2Output: Passing number is :-0.5 By using 'atan()' function your number is :-0.46364760900081 Example 3Output: Your passing number is :5 By using 'atan()' function your number is :1.373400766945 Example 4Output: Your passing number is :-5 By using 'atan()' function your number is :-1.373400766945 Example 5Output: Your passing number is :200 By using 'atan()' function your number is :1.5657963684609 Example 6Output: Your passing number is :-200 By using 'atan()' function your number is :-1.5657963684609 Example 7Output: passing number (3*pi()/2) is: 4.7123889803847 By using 'atan()' function your number is :1.3616916829712
Next TopicPHP Math
|