PHP atan( ) Function Last Updated : 22 Jun, 2023 Comments Improve Suggest changes Like Article Like Report Trigonometry is an important part of mathematics and PHP’s math functions provides us with some functions which are very useful for calculations involving trigonometry. One of such function is atan() function. The atan() function in PHP is used to find the arc tangent of an argument passed to it which has as a numeric value between -Pi/2 and Pi/2 radians. We already have discussed about PHP | tan() Function. The atan() function is the complementary function of tan(). Syntax: float atan($value) Parameters: This function accepts a single parameter $value. It is the number whose arc tangent value you want to find. The value of this parameter must be in radians. Return Value: It returns a floating point number which is the arc tangent value of number passed to it as argument. Examples: Input : atan(0.50) Output : 0.46364760900081 Input : atan(-0.50) Output : -0.46364760900081 Input : atan(5) Output : 1.373400766945 Input : atan(100) Output : 1.5607966601082 Below programs with different values of $value illustrate the atan() function in PHP: Passing 0.50 as a parameter: PHP <?php echo (atan(0.50)); ?> Output: 0.46364760900081 Passing -0.50 as a parameter: PHP <?php echo (atan(-0.50)); ?> Output: -0.46364760900081 Passing 5 as a parameter: PHP <?php echo (atan(5)); ?> Output: 1.373400766945 Passing 100 as a parameter: PHP <?php echo (atan(100)); ?> Output: 1.5607966601082 Reference: http://php.net/manual/en/function.atan.php Comment More infoAdvertise with us Next Article PHP atan( ) Function S Shubrodeep Banerjee Follow Improve Article Tags : Misc Web Technologies PHP PHP-math PHP-function +1 More Practice Tags : Misc Similar Reads PHP atan2( ) Function The atan2() function is a builtin function in PHP and is used to calculate the arc tangent of two variables x and y passed to it as arguments. The function returns the result in radians, which is between -Pi and Pi (inclusive). Syntax: float atan2($y, $x) Parameters: This function accepts two parame 1 min read PHP atanh( ) Function In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions. For a given value of a hyperbolic function, the corresponding inverse hyperbolic function provides the corresponding hyperbolic angle. PHP provides us with builtin functions for inverse hyperbolic 2 min read PHP asin( ) Function Trigonometry is an important part of mathematics and PHPâs math functions provides us with some functions which are very useful for calculations involving trigonometry. One of such function is asin() function. The asin() function in PHP is used to find the arc sine of a number in radians. We already 2 min read PHP array() Function The array() function is an inbuilt function in PHP which is used to create an array. There are three types of array in PHP: Indexed array: The array which contains numeric index. Syntax: array( val1, val2, val3, ... ) Associative array: The array which contains name as keys. Syntax: array( key=>v 2 min read PHP asinh( ) Function In mathematics, the inverse hyperbolic functions are the inverse functions of the hyperbolic functions. For a given value of a hyperbolic function, the corresponding inverse hyperbolic function provides the corresponding hyperbolic angle. PHP provides us with builtin functions for inverse hyperbolic 1 min read Like