Trigonometric Functions
The trigonometric functions return the trigonometric value specified by the function. They all have similar syntax.
General Syntax
TrigFunc (number)
TrigFunc is one of the trigonometric functions: Cos, Sin, Tan, ACos, ASin, ATan, CosH, TanH, or SinH.
number is the number or expression you want to evaluate. If number is a null value, a null value is returned. If number is an angle, values outside the range 0 through 360 are interpreted as modulo 360. Values greater than 1E17 produce a warning message and 0 is returned.
Remarks
Cos returns the cosine of an angle. number is the number of degrees in the angle. Cos is the inverse of ACos.
Sin returns the sine of an angle. number is the number of degrees in the angle. Sin is the inverse of ASin.
Tan returns the tangent of an angle. number is the number of degrees in the angle. Tan is the inverse of ATan.
ACos returns the arc-cosine of number in degrees. ACos is the inverse of Cos.
ASin returns the arc-sine of number in degrees. ASin is the inverse of Sin.
ATan returns the arc-tangent of number in degrees. ATan is the inverse of Tan.
CosH returns the hyperbolic cosine of an angle. number is the number of degrees in the angle.
SinH returns the hyperbolic sine of an angle. number is the number of degrees in the angle.
TanH returns the hyperbolic tangent of an angle. number is the number of degrees in the angle.
Examples
This example shows that the ACos function is the inverse of the Cos function:
Angle = 45
NewAngle = Acos(Cos(Angle)) ;* NewAngle should be 45 too
This example shows that the ASin function is the inverse of the Sin function:
Angle = 45
NewAngle = Asin(Sin(Angle)) ;* NewAngle should be 45 too
This example shows that the ATan function is the inverse of the Tan function:
Angle = 45
NewAngle = Atan(Tan(Angle)) ;* NewAngle should be 45 too
This example uses the Cos function to calculate the secant of an angle:
Angle = 45 ;* define angle in degrees
Secant = 1 / Cos(Angle) ;* calculate secant
This example uses the CosH function to calculate the hyperbolic secant of an angle:
Angle = 45 ;* define angle in degrees
HSecant = 1 / Cosh(Angle) ;* calculate hyperbolic secant
This example uses the Sin function to calculate the cosecant of an angle:
Angle = 45 ;* define angle in degrees
CoSecant = 1 / Sin(Angle) ;* calculate cosecant
This example uses the SinH function to calculate the hyperbolic cosecant of an angle:
Angle = 45 ;* define angle in degrees
HCoSecant = 1 / Sinh(Angle)
* calculate hyperbolic cosecant
This example uses the Tan function to calculate the cotangent of an angle:
Angle = 45 ;* define angle in degrees
CoTangent = 1 / Tan(Angle) ;* calculate cotangent
This example uses the TanH function to calculate the hyperbolic cotangent of an angle:
Angle = 45 ;* define angle in degrees
HCoTangent = 1 / Tanh(Angle)
* calculate hyperbolic cotangent