MathGroup Archive 2010

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

Search the Archive

Re: How to use the result of Solve in Plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111669] Re: How to use the result of Solve in Plot?
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Mon, 9 Aug 2010 05:16:02 -0400 (EDT)

Bear in mind that Solve will yield a list of all the solutions in terms of =
rules of the form {y -> x}. So you want to choose first which of the soluti=
ons you want to plot. You might try something like

In[1]:== sol==Solve[{5*x+4*y====12},{y}]
Out[1]== {{y->1/4 (12-5 x)}}

In[2]:== sol[[1]]
Out[2]== {y->1/4 (12-5 x)}

In[3]:== Plot[y/.sol[[1]],{x,0,2}]


> Date: Sun, 8 Aug 2010 07:20:10 -0400
> From: emammendes at gmail.com
> Subject: [mg111626] How to use the result of Solve in Plot?
> To: mathgroup at smc.vnet.net
>
> Hello
>
> I want to use the result of Solve[{5*x+4*y====12},{y}] in Plot[.,{x,0,2}]=


  • Prev by Date: Re: How to use the result of Solve in Plot?
  • Next by Date: Re: Default and head in function argument
  • Previous by thread: Re: How to use the result of Solve in Plot?
  • Next by thread: Re: How to use the result of Solve in Plot?