Sech(x)
Last updated October 9, 2001
Version: 1 | Requires: ColdFusion 5 | Library: MathLib
Description:
Returns the hyperbolic secant of an angle. All angles are expressed in radians.
Return Values:
Returns a numeric value.
Example:
<CFOUTPUT>
Given x=#x#<BR>
The Sech of #x# radians is: #Sech(x)#
</CFOUTPUT>
Parameters:
| Name | Description | Required |
|---|---|---|
| x | Any angle expressed in radians. | Yes |
Full UDF Source:
<cfscript>
/**
* Returns the hyperbolic secant of an angle.
*
* @param x Any angle expressed in radians.
* @return Returns a numeric value.
* @author Rob Brooks-Bilson (rbils@amkor.com)
* @version 1.0, October 9, 2001
*/
function Sech(x){
return 2/(Exp(X)+Exp(-x));
}
</cfscript>
Search CFLib.org
Latest Additions
Adam Cameron added
composeDateTime
19 day(s) ago
Chris Weller added
convertQueryStri...
a while ago
Greg Nettles added
arrayDiff
a while ago
Nathan Dintenfass added
ArrayOfStructsSo...
a while ago
Top Rated
backupDatabase
Rated 5.0, 36 time(s)
indentXml
Rated 5.0, 10 time(s)
deAccent
Rated 5.0, 6 time(s)
countArbitraryDa...
Rated 5.0, 5 time(s)