Cos(), Sin(), Tan(), ACos(), ASin(), ATan(), ATn2(), DToR(), RToD(), Pi()
Sines, sines,
everywhere there's sines,
breakin' up the scenery,
blowin' my mind
—with apologies to Five Man Electric Band
Usage | nRetValue = COS( nAngle ) nRetValue = SIN( nAngle ) nRetValue = TAN( nAngle ) |
Parameter | Value | Meaning |
nAngle | Numeric | The angle to calculate, expressed in radians. |
nRetValue | Numeric | The trigonometric value of the specified angle. |
Example | ? COS(PI()/3) && returns 0.50 ? SIN(PI()/3) && returns 0.87 ? TAN(PI()/3) && returns 1.73 |
Usage | nRetValue = ACOS( nTrigValue ) nRetValue = ASIN( nTrigValue ) nRetValue = ATAN( nTrigValue ) nRetValue = ATN2( nXValue, nYValue ) |
Parameter | Value | Meaning |
nTrigValue | Numeric | The value returned from the trigonometric function. |
nXValue, nYValue | Numeric | The X and Y coordinates of a point in any of the four quadrants describing a line through the origin. This line and the line y=0 form the angle returned by ATN2(). |
nRetValue | Numeric | The angle, in radians, whose trigonometric value is supplied to the function. |
Example | ? ACOS(.5) && returns 1.047, or PI/3 |
Usage | nAngleInRadians = DTOR( nAngleInDegrees ) nAngleInDegrees = RTOD( nAngleInRadians ) |
Parameter | Value | Meaning |
nAngleInDegrees | Numeric | The angle expressed in degrees. |
nAngleInRadians | Numeric | The angle expressed in radians. |
Example | ? DTOR( 90 ) && returns 1.57, or PI/2 ? RTOD( PI() / 2 ) && returns 90 |
Usage | nRetValue = PI() |
Example | ? PI() && displays 3.1415...etc., depending on SET(DECIMALS) |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.