Re: Dumb question
- To: mathgroup at smc.vnet.net
- Subject: [mg27806] Re: Dumb question
- From: Lawrence Walker <lwalker701 at earthlink.net>
- Date: Sat, 17 Mar 2001 05:41:36 -0500 (EST)
- Organization: Morgan State University: COMSARE
- References: <98neji$8g@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
p[x_,a_,t_]=(Sin[a-x]*t/(a-x))^2;
(* I try to stay away from caps like 'P' because all built in Mathematica
functions begins with capital letters. *)
Plot[p[x,Pi/2,1],{x,0,Pi}]
This should give the expected result.
Hope this helps,
Lawrence
Gustavo Seabra wrote:
> 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?
>
> Thanks,
> --
> -----------------------------------------------------------------
> Gustavo Seabra - Graduate Student
> Chemistry Department
> Kansas State University
> -----------------------------------------------------------------
--
------------------------------------------------------------
(\___/) The fear of the LORD is the beginning of
(o\ /o) wisdom: a good understanding have all they
/|:.V.:|\ that do his commandments: his praise
\\:::::// endureth for ever. Psa 111:10
-----`"" ""`------------------------------------------------
Lawrence A. Walker Jr., M.Eng./Ph.D. Candidate
Morgan State University
Clarence M. Mitchell School of Engineering
COMSARE (Center Of Microwave/Satellite And RF Engineering)
(443)885-1453
------------------------------------------------------------