It was really interesting! I think there is also a solution with fourier series.

By submitting this form, you accept the Mollom privacy policy.