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


Groups > comp.soft-sys.math.mathematica > #12064 > unrolled thread

Re: plot of function of two variables

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-10-14 04:18 +0000
Last post2012-10-14 04:18 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: plot of function of two variables Bob Hanlon <hanlonr357@gmail.com> - 2012-10-14 04:18 +0000

#12064 — Re: plot of function of two variables

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-10-14 04:18 +0000
SubjectRe: plot of function of two variables
Message-ID<k5deef$sdo$1@smc.vnet.net>
$Version

"7.0 for Mac OS X x86 (64-bit) (November 11, 2008)"

Manipulate[
 ContourPlot[(x - a)^2 + (y - b)^2 == r^2,
  {x, a - r, a + r},
  {y, b - r, b + r},
  Frame -> False,
  Axes -> True,
  AxesLabel -> {"x", "y"},
  PlotRange ->
   {{-15.5, 15.5}, {-15.5, 15.5}}],
 {{a, 0}, -5, 5, 1, Appearance -> "Labeled"},
 {{b, 0}, -5, 5, 1, Appearance -> "Labeled"},
 {{r, 5, "|r|"}, 1, 10, 1,
  Appearance -> "Labeled"}]

Manipulate[
 Plot[Evaluate[y /.
    Solve[(x - a)^2 + (y - b)^2 == r^2, y]],
  {x, a - r, a + r},
  AspectRatio -> 1,
  FrameLabel -> {"x", "y"},
  PlotRange ->
   {{-15.5, 15.5}, {-15.5, 15.5}}],
 {{a, 0}, -5, 5, 1, Appearance -> "Labeled"},
 {{b, 0}, -5, 5, 1, Appearance -> "Labeled"},
 {{r, 5, "|r|"}, 1, 10, 1,
  Appearance -> "Labeled"}]


Bob Hanlon


On Sat, 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?
>
> Thank you,
>
> --
> Miguel Aragon
> aragon.miguel@gmail.com
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web