Richard Phillips
Wolfram Science Group
Boston, USA
Registered: Oct 2003
Posts: 46 |
Serge,
You may get better answers at the MathGroup Forum for Mathematica use and programming:
http://forums.wolfram.com/mathgroup/
A forum for Student users exists too:
http://forums.wolfram.com/student-support/list/
You can assign the results to variables, as follows:
In[1] := {max, r} = Maximize[{x^2 + 2y, x^2 + y^2 <= 1}, {x, y}]
Out[1] = {2, {x -> 0, y -> 1}}
In[2] := max
Out[2] = 2
In[3] := r
Out[3] = {x->0, y->1}
Any expression containing x and y can then be calculated by using ReplaceAll (written /. ) as follows:
In[4]:= {x, y} /. r
Out[4] = {0, 1}
In[5]:= y + y /. r
Out[5] = 2
Does this help?
Report this post to a moderator | IP: Logged
|