Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'plotting a wave equation' topicStudent Support Forum > General > "plotting a wave equation"

Next Comment >Help | Reply To Topic
Author Comment/Response
dustin
11/10/12 12:27pm

How do I plot this in the Mathematica?
I tried this but it doesn't work.
t is the time interval.
[CODE]
u[x_, t_] =
Piecewise[{{t, -1 < x - t < 1 And - 1 < x + t <
1}, {1/2 (1 - x + t), -1 < x - t < 1 And x + t >
1}, {1/2 (x + t + 1), x - t < -1 And - 1 < x + t < 1}, {1,
x - t < -1 And x + t > 1}, {0, x + t < -1}, {0, x - t > 1}}];
Manipulate[Plot[u[x, t], {x, -10, 10}], {t, 0, 1, .01}]
[/CODE]

URL: ,

Subject (listing for 'plotting a wave equation')
Author Date Posted
plotting a wave equation dustin 11/10/12 12:27pm
Re: plotting a wave equation yehuda 11/11/12 02:31am
Re: plotting a wave equation Peter Pein 11/11/12 10:10am
Next Comment >Help | Reply To Topic