The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg4908] help!! Plot3D of ellipsoid
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Paul R. Wellin

Posts: 14
Registered: 12/7/04
Re: [mg4908] help!! Plot3D of ellipsoid
Posted: Oct 7, 1996 1:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> I am trying to get a 3-d plot of an ellipsiod, of the equation
> (x^2/a^2) + (y^2/b^2) + (z^2/c^2) = 1
> manipulating the equation I can get
> z = (c^2 (1- (x^2/a^2) - (y^2/b^2)))^1/2
> then, with the constants defined, I write
> Plot3D[z,{x,0,a},{y,0,b}]
> Mathematica then spits out a bunch of errors

You will have to parametrize the surface. I'll leave the
details to you, but with a bit of work, you can parametrize
the ellipsoid as:

ellipsoid[u_,v_] := {a Cos[u] Cos[v], b Sin[u] Cos[v], c Sin[v]}

Then you can generate your surface as:

a = 1;
b = 1;
c = 2;
ParametricPlot3D[ellipsoid[u, v],
{u, 0, 2 Pi}, {v, -Pi/2, Pi/2}]

Out[2]= -Graphics3D-

You can fiddle with the parameters to get stretch the ellipse
in the x, y, or z directions.

Paul Wellin
Academic/Business Liaison
Wolfram Research, Inc.
100 Trade Center Drive
Champaign, IL 61820

phone: 217-398-0700
fax: 217-398-0747

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.