I’m expecting to get a horizontal line but I get some random squiggles instead, here is my Plot:
Plot[Sin[x] + Sin[x + Pi], {x, 0,2 Pi}]
I am trying to add together two waves that are perfectly out of phase. If I vary the phase a little it works fine, or if I just plot both waves they look fine.
I must be missing something?
Thanks guys, but your suggestions usually resulted in a ‘U’ or ‘V’ shape with the bottom at the (0,0) point. I found the following to at least yield a flat line as I had been originally trying to get: