Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Plotting a super ellipse

  • To: mathgroup at
  • Subject: [mg55159] Re: Plotting a super ellipse
  • From: "Carl K. Woll" <carlw at>
  • Date: Tue, 15 Mar 2005 00:21:41 -0500 (EST)
  • Organization: University of Washington
  • References: <d1148h$dqj$> <d13jam$qlp$>
  • Sender: owner-wri-mathgroup at

"JC" <Eat at> wrote in message news:d13jam$qlp$1 at
> On Sun, 13 Mar 2005 10:22:09 +0000 (UTC), Bob Hanlon <hanlonr at>
> wrote:


>>    ImageSize->230];
>>Bob Hanlon
> Bob,
> Thank you very much for your response. It worked.  Now I will just
> need to decipher it so I can change the  variables to adjust the
> curve, but that is not a big problem.
> One question.  The plot produced only was for one quarter of the super
> ellipse. Is there a way to get the entire ellipse to plot?


As written, your equation only has real solutions in the first quadrant. If 
you raise a negative number to the power 5/2 or 2.5, you surely cannot 
expect a real number. Perhaps your equation was supposed to include absolute 
values? Such as

aeqn = Abs[x]^2.5 + Abs[y]^2.5/1.25^2.5 == 20;

The above equation has roots in all 4 quadrants, and ought to be able to be 
plotted. Unfortunately, using ImplicitPlot with the above equation has 
problems, because ImplicitPlot calls Solve, and Solve converts Abs[x] into x 
|| -x and then gives up. A workaround is to use Sqrt[x^2] instead of Abs[x]. 
So, let

aeqn = Sqrt[x^2]^2.5 + Sqrt[y^2]^2.5/1.25^2.5 == 20;

Now, if you use ImplicitPlot you will get a plot on all 4 quadrants.

ImplicitPlot[aeqn,{x, -20^.4, 20^.4}]

Carl Woll 

  • Prev by Date: Re: Re: Plotting a super ellipse
  • Next by Date: Re: Copy As menu command
  • Previous by thread: Re: Re: Plotting a super ellipse
  • Next by thread: Re: Re: Plotting a super ellipse