1. Computing & Technology

Discuss in my forum

Cosh () PHP Function

By , About.com Guide

Definition: The Cosh () function in PHP is used to find the hyperbolic cosine. Cosh (x) will give you the hyperbolic cosine of x, which can also be calculated as exp(x) + exp(-x))/2, where exp(x) is e raised to the power of x.
Also Known As: Hyperbolic Cosine
Examples:
 <?php 
 echo(cosh(1) . "<br />"); 
 echo((exp(1) + exp(-1))/2 . "<br />"); 
 echo(cosh(0) . "<br />"); 
 echo(cosh(-1) . "<br />"); 
 ?> 

This will return the results:
1.5430806348152
1.5430806348152
1
1.5430806348152

Related Searches hyperbolic cosine php echo lt br

©2012 About.com. All rights reserved.

A part of The New York Times Company.