Important: The information in this document is obsolete and should not be used for new development.
FracSin
You can use theFracSinfunction to obtain a fast approximation of the sine of aFixednumber.
FUNCTION FracSin (x: Fixed): Fract;
x- The
Fixednumber expressed in radians, whose sine is to be calculated.DESCRIPTION
TheFracSinfunction returns the sine, expressed in radians, of theFixednumberx.The approximation of Pi/4 used to compute the sine is the hexadecimal value 0.C910, making the approximation of Pi equal to 3.1416015625, while Pi itself equals 3.14159265.... Despite the approximation of Pi, the sine value obtained is usually correct to several decimal places.