Csch(x)
Last updated October 9, 2001
Version: 1 | Requires: ColdFusion 5 | Library: MathLib
Description:
Returns the hyperbolic cosecant of an angle. If angle is 0, returns "undefined". All angles are expressed in radians.
Return Values:
Returns a numeric value or string.
Example:
<CFOUTPUT>
Given x=#x#<BR>
The Csch of #x# radians is: #Csch(x)#
</CFOUTPUT>
Parameters:
| Name | Description | Required |
|---|---|---|
| x | Any angle expressed in radians. | Yes |
Full UDF Source:
<cfscript>
/**
* Returns the hyperbolic cosecant of an angle.
*
* @param x Any angle expressed in radians.
* @return Returns a numeric value or string.
* @author Rob Brooks-Bilson (rbils@amkor.com)
* @version 1, October 9, 2001
*/
function Csch(x){
if (x EQ 0)
return "undefined";
else
return 2/(Exp(x)-Exp(-x));
}
</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)