Re: plot function of two variables
- To: mathgroup at smc.vnet.net
- Subject: [mg128410] Re: plot function of two variables
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Sun, 14 Oct 2012 00:13:42 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <k5at8r$nra$1@smc.vnet.net>
- Reply-to: nma at 12000.org
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