Re: plotting of curve
- To: mathgroup at smc.vnet.net
- Subject: [mg42153] Re: plotting of curve
- From: Mark Westwood <MarkCWestwood at compuserve.com>
- Date: Sat, 21 Jun 2003 02:49:31 -0400 (EDT)
- References: <bcuiaf$2p9$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Kee, A simple answer is: Plot[2*Exp[1/(W x)]/(587 - x)^2/.W->5.8, {x,-10,10}] Note: --- W x is written with a space between the letters, which causes Mathematica to understand that the variables should be multiplied; --- /.W->5.8 is a replacement rule, which sets the value of W to be 5.8 within the scope of the Plot command, but does not change it outside the scope of the command; --- set the min and max values for x to whatever you wish. Note that the function is undefined when x==0, which might cause Mathematica to generate a warning message, but should not prevent it having a stab at drawing the graph. Hope this helps Mark Westwood ce.choa.phen.kee at philips.com wrote: > > Hi all, > > May I know how can I plot this equation 2*Exp[1/(Wx)]/(587 - x)^2 which I have gotten from > this function: NonlinearFit[values, (MM * Exp[1/Wx])/(NN-x)^2, > {x,1/(Wx)},{{MM,5},{NN,600}}]? > > I made use of x-values and 1/(Wx) values to fit the data into the desired > equations. But just have no idea on how to plot the generated equation as y against 1/(Wx). > > Given W is 5.8 and the two x in the equation are both using the same > x-values.. > > pls guide.. > > Thanks in advance. > > regards, > kee