| Author |
Comment/Response |
Doug
|
01/29/99 4:01pm
Does anyone have a good way to define a square wave in Mathmatica?
I thought perhaps I could use the ''manual'' method and define the wave conditionally, like:
1 for 0<x<=1
y(x)= -1 for 1<x<=2
1 for 2<x<=3
but I couldn't figure out how to do this or just didn't know where to look.
Even so this is not the best solution, as I would rather define it with a
function rather than ''manually'' as above. And I have needed to define functions conditionally in other cases, so any help would be appreciated.
-dv
Thanks in advance.
-dv
URL: , |
|