PHP | acosh( ) 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 hyperblic 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:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

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

    chevron_right

    
    

    Output:

    2.6339157938496
  • Passing 56 as a parameter:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

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

    chevron_right

    
    

    Output:

    4.7184191423729
  • Passing 2.45 as a parameter:
    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

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

    chevron_right

    
    

    Output:

    1.5447131178707

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



My Personal Notes arrow_drop_up

I am a technology enthusiast who has a keen interest in programming I am pursuing Engineering in Computer Science from GEU, Dehradun I like to unwind by watching movies and English sitcomsI have a keen interest in music

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.