Open In App
Related Articles

PHP acosh( ) Function

Improve Article
Improve
Save Article
Save
Like Article
Like

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 calculations. The acosh() function in PHP is used to find the inverse hyperbolic cosine of a number passed to it as argument. 

Syntax:

float acosh($value)

Parameters: This function accepts a single parameter $value. It is the number whose inverse hyperbolic cosine 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 inverse hyperbolic cosine value of a number passed to it as argument. Examples:

Input : acosh(7)
Output : 2.6339157938496

Input : acosh(56)
Output : 4.7184191423729

Input : acosh(2.45)
Output : 1.5447131178707

Below programs, taking different values of $value are used to illustrate the acosh() function in PHP:

  • Passing 7 as a parameter: 

PHP




<?php
  
echo (acosh(7));
  
?>      


  • Output:
2.6339157938496
  • Passing 56 as a parameter: 

PHP




<?php
  
echo (acosh(56));
  
?>      


  • Output:
4.7184191423729
  • Passing 2.45 as a parameter: 

PHP




<?php
  
echo (acosh(2.45));
  
?>      


  • Output:
1.5447131178707

Reference: http://php.net/manual/en/function.acosh.php


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 22 Jun, 2023
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials