The generation algorithmen needs only one multiplication and 3 additions.
( there is also a division through 65536 but this is only for scaling
to integer reasons. The division may be replaced by a shift operation
and a compare to keep the sign )
History:
I was trying to simulate a spring-mass-system. It was possible to
reduce the equations for this system to the algorthmen below to generate a
sine wave.