![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
cosh() function in PHP
The cosh() function Returns the hyperbolic cosine of a number. The value Returned is a floating point number.
Syntax
cosh(num)
Parameters
num − Specifies a number in radians
Return
The cosh() function Returns the hyperbolic cosine of a number. The value Returned is a floating point number.
Example
<?php echo(cosh(1) . "<br>"); echo(cosh(-1)); ?>
Output
1.5430806348152<br>1.5430806348152
Example
Let us see another example −
<?php echo(cosh(0)); ?>
Output
1
Example
<?php echo(cosh(M_PI) . "<br>"); echo(cosh(2*M_PI)); ?>
Output
11.591953275522<br>267.74676148375
Advertisements