MathGroup Archive 2006

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

Search the Archive

Re: How to plot this


siegmund natter escreveu no grupo comp.soft-sys.math.mathematica:
> 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.

So, what is y[x]?

(>> means input here)

>> eqn1 = x+y == 2 x y

x+y == 2 x y

>> eqn1 /. y -> y[x]

x+y[x] == 2 x y[x]

Maybe you want this:

Solve[%,y[x]] //InputForm

{{y[x] -> x/(-1 + 2*x)}}


  • Prev by Date: Re: How to do a SQL type operation???
  • Next by Date: Re: How to plot this
  • Previous by thread: Re: How to plot this
  • Next by thread: Re: How to plot this