MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot problem

  • To: mathgroup at
  • Subject: [mg61601] Re: Plot problem
  • From: Bill Rowe <readnewsciv at>
  • Date: Sun, 23 Oct 2005 05:46:09 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 10/22/05 at 5:11 AM, smilehezuk at (smilehezuk) wrote:

>I want to solve these equations and plot. Please tell me how.

>There are two equations;

>Lamda = Sqrt[R A x/B], R = C x (D + E/Lamda) (A,B,C,D,E :
>constants, x : another variable)

>I need to plot R versus x.

First, you need to appreciate the expressions above are not equations in Mathematica. Set ("=") causes the symbol on the lhs to be assigned the value of the evaluated expression on the rhs. Equal in Mathematica is "==" not "="

A second issue is your choice of names for the constants. In general, it is not a good idea to use capital letters for your constants. In particular E is a built in symbol which already has the value 2.7182... The reason for not using capital letters as constants or variables is to avoid conflicts with existing built in symbols or symbols defined in packages you load.

So, your problem could be done as follows:

lamda = Sqrt[r*a*(x/b)]; 
eq = r == c*x*(d + e/lamda); 
sol = Solve[eq, r];

In your example, lambda can be set to Sqrt[r a (x/b)] since it only appears on the rhs of the second equation.



shows there are three solutions to your problem. Picking the first,

In[5]:=f = R /. First[sol]; 

it can be plotted with

Plot[f, {x, minValue, maxValue}]

after defining values for a, b, c, d and e
To reply via email subtract one hundred and four

  • Prev by Date: Re: Baffling change to partial derivative in version 5.1
  • Next by Date: Re: precision of a measurement (documentation related question)
  • Previous by thread: Re: Plot problem
  • Next by thread: Re: Plot problem