Sine()

Sine() is a fast 16 Bit, 360┬░ Wave Function. It expects an angle in degrees (0-359). The Result is a 16 Bit Integer (-32768 to +32767) as the equivalent to the angle.

Syntax: result = Sine( Expression ) Use Sine to create geometric or mathematical Sinewaves because no individual Sinus/Cosine is required. The calulation is upto 10x faster than the classic method because it uses a Lookup table. Only whole angles are permitted.

Angle Result
0 0
45 23171
90 32767
180 0
270 -32768

Example:

  dim angle as byte
  dim result as integer
  angle=90
  result = Sine(winkel)

See also: Fsine()