Hi Visigoth,
thanks for your reply and cleaning the code.
What amplitude I actually expect? Well, starting from
sin( w * n * Ts + phi ) I would expect min = -1 and max = 1, or an amplitude of 1, right?
The amplitudes obtained by both methods are a) different and b) simply wrong - why...