MathGroup Archive 1997

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

Search the Archive

Re: Solve and Plot



Michel Gosse <michel.gosse at hol.fr> wrote in article
<5hdaum$dra at smc.vnet.net>...
| Hello
| I would like to solve an equation and then plot the solution. The command
:
| Plot[Solve[3x+2y-4==0,y]],{x,-5,5}]
| How can i do my plot in a one line command ?
| Regards.
| **************************************************************
| * Michel Gosse               | Email   : michel.gosse at hol.fr *
| * 97, rue Joachim du Bellay  | Webpage : coming soon...      *
| * 86000 POITIERS             | Phone   : 33 549460970        *
| * FRANCE                     | Fax     : 33 549460970        *
| **************************************************************
| 
| 

Plot[Evaluate[y/.Solve[3x^2+2y-4==0,y][[1]]],{x,-5,5}]

Will do the trick !

Peter MEURIS


 


  • Prev by Date: Re: coupled ODE system: won't solve [?]
  • Next by Date: non-negative least squares
  • Previous by thread: Re: Solve and Plot
  • Next by thread: Re: Solve and Plot