Student Support Forum: 'NSolve output' topicStudent Support Forum > General > Archives > "NSolve output"

 Next Comment > Help | Reply To Topic
 Author Comment/Response Berthold Hamburger 01/12/13 6:11pm Hello, 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 wice 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 {y->3.05701,z->2.5578} I would want to get an output that returns values for all 3 variables x,y,z as in {x->5.1156,y->3.05701,z->2.5578} but somehow cannot find a way to do it What would be the correct way for doing that? Regards Berthold Hamburger URL: ,

 Subject (listing for 'NSolve output') Author Date Posted NSolve output Berthold Ham... 01/12/13 6:11pm Re: NSolve output Bill Simpson 01/12/13 7:36pm Re: Re: NSolve output Berthold Ham... 01/13/13 07:47am Re: NSolve output Bill Simpson 01/12/13 9:14pm
 Next Comment > Help | Reply To Topic