MathGroup Archive 2002

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

Search the Archive

Thanks to all --Re: non integer exponents in ContourPlot[]?

  • To: mathgroup at
  • Subject: [mg35255] Thanks to all --Re: non integer exponents in ContourPlot[]?
  • From: rob <rob at>
  • Date: Fri, 5 Jul 2002 02:18:55 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Boy, even I should have figured out that complex numbers was the problem here. For some reason I didn't suspect it.

Many thanks to all who took the time to straighten me out.

"1.156" wrote:

> Mathematica wizards all:
> The following code runs fine, note the (apparent) floating point form of the exponents.
> a=-5.75;b=2;d=1.1;
> ContourPlot[a*((x^2.0 + y^2.0)^0.5 + b*y^2.0), {x, -d, d}, {y, -d, d}, ContourShading -> False,
>    Contours -> {-6, -3, -1}, PlotPoints -> 30];
> But, if I make any of the 2.0 exponents say, 2.1, I get big error messages like
> ContourGraphics::ctpnt:
>    The contour is attempting to traverse a cell in which some of the points have not evaluated to numbers,
>     and it will be dropped.
> However, it works fine if I change the 0.5 exponent to say, 0.55.
> Can anyone give me a hint of what's going on here? I'd sure like to be able to play with these exponents to fit some data.
> Thanks, Rob

  • Prev by Date: Re: Art Graphics in Mathematica
  • Next by Date: Re: MathLink and Vectors
  • Previous by thread: RE: dynamic optimization
  • Next by thread: RE: Corrupted Files & Version 4.2 Problems