Re: Dumb question
- To: mathgroup at smc.vnet.net
- Subject: [mg27785] Re: Dumb question
- From: "Paul Lutus" <nospam at nosite.com>
- Date: Sat, 17 Mar 2001 05:41:09 -0500 (EST)
- References: <98neji$8g@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Gustavo Seabra" <gseabra at swbell.net> wrote in message news:98neji$8g at smc.vnet.net... > Hello. I know this may be a dumb question, and I apologize for doing that. > But I am new to Mathematica, and I'm having a little trouble with this. I > want to plot the equation: > > P=[sin(a-x)*t/(a-x)]^2 > > with fixed t (say, 1) and fixed a (say, Pi/2), with x varying from 0 to Pi. > I know there is a discontinuity at x=a. Is there a way to plot this? I mean, > P(x) versus x? Have you tried to plot the function? p[x_,a_,t_]:=(Sin[a-x] t/(a-x))^2 Plot[p[x,Pi/2,1],{x,0,Pi}] Mathematica knows how to deal with the discontinuity at a-x = 0. Even this is possible: Plot[1/x,{x,-1,1}] Try it! -- Paul Lutus www.arachnoid.com