Sin()

Sin() is a fast Sinus-Function. It expects an angle in degrees multiplied by 10. The Result is a 16 Bit Integer (-32768 to +32767) equivalent to the Sinus value (-1 to +1). The function the Cordic Algorithm to calculate.

Syntax: ergebnis = Sin( Expression )

Example:

  dim angle as byte
  dim result as integer
  winkel=23
  result = Sin(angle*10)