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: NSolve output
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Berthold Hamburger

Posts: 20
Registered: 3/11/11
NSolve output
Posted: Jan 12, 2013 9:51 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I want to solve two simple equations with NSOLVE to calculate the
dimensions of a rectangular box that is open on top. The length of the
box is twice the width and the volume and area of the box are
respectively 40 cubic feet and 60 square feet.

I defined the area and volume:
a = xz + 2xy + 2yz
v = xyz

then substituted x with 2z:

a2 = a /. x->2z
v2 = v /. x->2z

a2 = 6 y z + 2 z^2
v2 = 2 y z^2

solved with NSolve:
step1 = NSolve[{a2 == 60, v2 == 40}, {y, z}, Reals] [[1,2]] //Column

which returns the results

I would like to get an output that returns values for all 3 variables
x,y,z as in


but somehow cannot find a way to do it

What would be the correct way for doing that?


Berthold Hamburger

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.