| Author |
Comment/Response |
Jeff Hamrick
|
09/24/03 11:14am
Hello -
I recently defined
PSI[x]:=Which[Abs[x]<1,1,Abs[x]>=0]
a well-defined function.
I then defined
u[x_,t_]:=(1/(2*Pi))*Integrate[PSI[s],{s,x-Pi*t,x+Pi*t}]
I wanted to fix particular values of t (such as t=1/(2Pi), 1/Pi, et cetera and then plot
Plot[u[x,t_0],{x,-5,5}]
where t_0 is one of those particular values of t.
Mathematica does generate the plot I am asking for, but only after much pain and suffering. In particular, if I choose particular values of t with certain ranges for x, what should be a continuous graph with straight lines sometimes becomes strange looking. In particular, Mathematica will plot certain parts of the graph with bizarre tiny oscillations when the graph should simply be constant.
Any ideas as to what is going on here?
Best,
-jeff hamrick.
Boston University
URL: , |
|