fixed a bug caused by the erroneous nature of the division operator.
To see how serious its effect can be, run 3waves.py and observe that the continuous and sampled outputs don't overlap if the former code is used!