HTBasic Help
×
Menu
Index

COSH

Returns the hyperbolic cosine of an expression.
 
 COSH( numeric-expression )
 
Usage:
A=COSH(B)
Hcosine=COSH(X+PI)
PRINT COSH(CMPLX(X,Y))
 
Example: COSH.BAS
 
Description:
COSH accepts either a COMPLEX or REAL argument and returns a value of the same type. The argument must be specified in radians, regardless of the current trigonometric mode. The real and imaginary parts of COSH(Z) are calculated (using real arithmetic) as
 
REAL(COSH(Z)) = COSH(REAL(Z))*COS(IMAG(Z))
IMAG(COSH(Z)) = SINH(REAL(Z))*SIN(IMAG(Z))
 
Notice that intermediate values generated during the calculation of the function can cause over or underflow errors for very large or small values of Z.
 
See Also: