MathGroup Archive 2006

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

Search the Archive

Re: How to plot this


Hi, I think you forgot to Solve command:
This works
eqn1 = x + y == 2*x*y;
y[x_] = y /. Solve[eqn1, y, x][[1]];
Plot[y[x], {x, 1, 3}]

Daniel

siegmund natter wrote:
> Hello
> 
> Can anyone tell why this is wrong?
> 
> eqn1 = x + y == 2*x*y;
> eqn1 /.y -> y[x];
> Plot[y[x], {x, 1, 3}]
> 
> How do I do it correctly? (This is just an example; I want to do this 
> with a much more difficult equation)
> Thanks a lot.
> 
> (I am using Mathematica 5.1)
> 


  • Prev by Date: Re: How to plot this
  • Next by Date: Re: Re: Mathematica:recursion with 2 arguments?
  • Previous by thread: Re: How to plot this
  • Next by thread: Re: How to plot this