HTBasic Help
×
Menu
Index

SIN

Returns the sine of the argument.
 
 SIN( argument )
 
Usage:
A=SIN(B)
Sine=SIN(Angle)
Example: SIN.BAS
Description:
The range of the sine function is -1 to 1 inclusive. The numeric expression is treated as an angle in the current trigonometric mode: RADians or DEGrees. The default trigonometric mode is radians.
COMPLEX Arguments
SIN accepts either a COMPLEX or REAL argument and returns a value of the same type. For COMPLEX arguments the angle must be specified in radians, regardless of the current trigonometric mode. The real and imaginary parts of SIN(Z) are calculated (using real arithmetic) as:
REAL(SIN(Z)) = SIN(REAL(Z))*COSH(IMAG(Z))
IMAG(SIN(Z)) = COS(REAL(Z))*SINH(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: