Cosh(x)
Last updated October 9, 2001
Version: 1 | Requires: ColdFusion 5 | Library: MathLib
Description:
Returns the hyberbolic cosine of an angle. All angles are expressed in radians.
Return Values:
Returns a numeric value.
Example:
<CFOUTPUT>
Given x=#x#<BR>
The Cosh of #x# radians is: #Cosh(x)#
</CFOUTPUT>
Parameters:
| Name | Description | Required |
|---|---|---|
| x | Angle measured in radians. | Yes |
Full UDF Source:
<cfscript>
/**
* Returns the hyberbolic cosine of an angle.
*
* @param x Angle measured in radians.
* @return Returns a numeric value.
* @author Joel Cox (jlcox@goodyear.com)
* @version 1, October 9, 2001
*/
function Cosh(x)
{
Return((Exp(x) + Exp(-x)) / 2);
}
</cfscript>
Search CFLib.org
Latest Additions
Dave Anderson added
iniToStruct
20 day(s) ago
Dave Anderson added
deDupeArray
20 day(s) ago
Richard added
dice
22 day(s) ago
Isaac Dealey added
getRelative
a while ago
Top Rated
backupDatabase
Rated 5.0, 22 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)
highlightAndCrop
Rated 5.0, 4 time(s)