MathGroup Archive 1998

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

Search the Archive

Re: Coordinates for Implicit function



Needs["Graphics`ImplicitPlot`"]

eqn = 3*x^2 - 4*x*y + 2*y^2 == 4; 

thePlot = ImplicitPlot[eqn, {x, -5, 5}]; 

Extracting the data points from the Graphics object:

theData1 = thePlot[[1,2,1,1,1]];
theData2 = thePlot[[1,2,2,1,1]];
theData = Union[theData1, theData2]; 

If you want to generate your own data points

theTable = Table[{x, y /. Solve[eqn, y]}, {x, -2, 2, 0.1}];  theData =
Flatten[theTable /. 
     {{x_, {y1_, y1_}} -> {{x, y1}}, 
      {x_, {y1_, y2_}} -> {{x, y1}, {x, y2}}}, 1]; 

I assume that "Conic" is some function which you have defined.

Bob Hanlon

In a message dated 3/19/98 10:23:34 PM, mavalosjr@aol.com wrote:

>How can I get the coordinates of an explicit function in this case the
>equation for
>an ellipse: 3 x^2 - 4 x y + 2 y^2 ==4?  I tried using Table for the list
>but the method doesn't work for the two variables. Once having these
>coordinates I want to plug them into Map[Conic,{{x, y,}.....{xn,yn}} to
>get back the original equation.



  • Prev by Date: Re: Re: Extracting polynomial coefficients?
  • Next by Date: Display - Funkion
  • Prev by thread: Coordinates for Implicit function
  • Next by thread: Re: Coordinates for Implicit function