MathGroup Archive 2012

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

Search the Archive

Re: plot function of two variables


On 10/13/2012 12:12 AM, Miguel Aragon wrote:
> I have a question about how to plot a function of two variable of the form
> (x-a)^2 + (y-b)^2 = r^2 with Mathematica v 7.0?  Is it possible?
>
> Thank you,
>

some possibilities

-------------
Clear[x, y]
expr = (x - a)^2 + (y - b)^2 - r^2;
values = {a -> 1, b -> 1, r -> 2};

ContourPlot[expr /. values, {x, -2, 2}, {y, -2, 2}]
Plot3D[expr /. values, {x, -2, 2}, {y, -2, 2}]
-------------------------------

--Nasser



  • Prev by Date: Re: plot of function of two variables
  • Next by Date: Re: plot of a function of two variables
  • Previous by thread: Re: Solve
  • Next by thread: Re: plot function of two variables