In the definition of y(t), on te first line change t greater than or equal to 0 to t greater than 0. |
No, this would result in spikes down to zero for most integer multiples of f^-1. (e.g. b(8*f^-1)=0! The problem with b(10*f^-1) is due to numeric inaccuracies combined with the way Pirates tried to make his function periodic using that sum. Basically he is summing up y(10*f^-1 - n*f^-1) and all n but n=10 (yields 13A) should yield 0. Because of numerical inaccuracies 10*f^-1 - 9*f^-1 does not evaluate to f^-1 but to a value very slightly smaller and so y(of this value) is not zero but close to 13. See attached file.
Thats nice! And in case Pirates really need it more generic as his variables y1..y4 and D suggest, attached is a sheet which shows some ways to make any function defined in [0; f^-1) a periodic one.
