I have a differential equation that depends on another function, which is not to be differentiated.
As a simplified example, the differential is of the form
where B is supposed to be a squarewave.
Another issue I'm having, is that the squarewave is up at y=100 for 2 seconds, then at y=0 for 2 seconds, then at y=100 for .5 seconds, then at y=0 for .25 seconds, then at y=100 for .125 seconds.
So my questions are
1)How can I make a squarewave that behaves like that?
2)How can I plug that squarewave function into the differential equation?