Re: How to use the result of Solve in Plot?
- To: mathgroup at smc.vnet.net
- Subject: [mg111663] Re: How to use the result of Solve in Plot?
- From: "J. Batista" <jbatista800 at gmail.com>
- Date: Mon, 9 Aug 2010 05:14:56 -0400 (EDT)
Eduardo, you can perform the desired operation by first assigning a variable to your original solution set at the beginning of your Solve command line. Then, in your Plot command line, you may call all or part of the solution set as a function of the independent variable/parameter, in your case x. The two lines of code below accomplish these goals in this order. solution = Solve[5*x+4*y==12, y] Plot[Evaluate[y /. solution], {x,0,2}] Regards, J. Batista On Sun, Aug 8, 2010 at 7:20 AM, Eduardo M. A. M.Mendes <emammendes at gmail.com > wrote: > Hello > > I want to use the result of Solve[{5*x+4*y==12},{y}] in Plot[.,{x,0,2}]. > Plot[Solve[.],{x,0,2}] does not work. > > Many thanks > > Ed > > PS. I am new to Mathematica. > >