PHP tan() FunctionThe tan() function is trigonometry math function of PHP, which is used to calculate trigonometry problems. It returns the tangent of a number. Syntax:
Example 1Output: Your number is M_PI_4 = 0.78539816339745 By using 'tan()' function your number is :1 Example 2Output: Your number is = 0.5 By using 'tan()' function your number is :0.54630248984379 Example 3Output: Your number is = -0.5 By using 'tan()' function your number is :-0.54630248984379 Example 4Output: Passing number is = 5 By using 'tan()' function your number is :-3.3805150062466 Example 5Output: Passing number is = 10 By using 'tan()' function your number is :0.64836082745909 Example 6Output: Passing number is = -5 By using 'tan()' function your number is :3.3805150062466 Example 7Output: Passing number is :0.5 By using 'tan()' function your number is :0.54630248984379 Example 8Output: Passing number is : 3*pi()/2 By using 'tan()' function your number is :5.4437464510651E+15
Next TopicPHP Math
|