MathGroup Archive 2008

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

Search the Archive

Plot Magic Voodoo ???

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90930] Plot Magic Voodoo ???
  • From: beckman <bc.beckman at gmail.com>
  • Date: Wed, 30 Jul 2008 03:52:13 -0400 (EDT)

Consider the following:

z := {L == x y, y == x, x == y}

Solve[z, {L}] --->  {{L->y^2}}

no surprises. now,

Plot[L /. Solve[z, {L}][[1]], {y, 1, 10}]

Works exactly as one would expect, BUT, this also works

Plot[L /. Solve[z, {L}][[1]], {x, 1, 10}]

BUT, the first argument of Plot is L /. Solve[z, {L}][[1]], which is
y^2, so my brain said that

Plot[L /. Solve[z, {L}][[1]], {x, 1, 10}] ---> Plot[y^2, {x, 1, 10}]

which, of course, cannot work. Btw,

Plot[L /. Solve[z, {L}][[1]], {q, 1, 10}]

does not work, so SOMEHOW, Plot is magically peeking at the innards of
the Solve expression, and is NOT evaluating it, and noticing that x is
a free variable in the set of equations, z, and ... my brain is
melting

would someone be so kind as to shed some light on this voodoo, please
and thanks?


  • Prev by Date: Denoting a Cartesian Product
  • Next by Date: Objectica: New third-party Mathematica application for object orientation
  • Previous by thread: Denoting a Cartesian Product
  • Next by thread: Re: Plot Magic Voodoo ???