Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12067

Re: plot a function of two variables

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: plot a function of two variables
Date 2012-10-14 04:21 +0000
Message-ID <k5dek5$sec$1@smc.vnet.net> (permalink)
References <20121013050359.784D168D7@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On Oct 13, 2012, at 1:03 AM, Miguel Aragon <aragon.miguel@gmail.com> 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?

Use ContourPlot. For example:

  ContourPlot[(x - 1)^2 + (y + 1)^ 2== 3^2, {x, -4, 5}, {y, -5, 4},
     ContourStyle -> Thick, Axes -> True, Frame -> False, AxesLabel -> "x", "y"}]

Notice that with this form of ContourPlot, where the first argument is a function, you do not specify the Contours option.

---
Murray Eisenberg                                     
murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower                      phone 413 549-1020 (H)
University of Massachusetts                                413 545-2838 (W)
710 North Pleasant Street                            fax   413 545-1801
Amherst, MA 01003-9305





Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: plot a function of two variables Murray Eisenberg <murray@math.umass.edu> - 2012-10-14 04:21 +0000

csiph-web