Something like this? sage: solns = solve([f.diff(ar) for ar in f.args()],f.args(), solution_dict=True)[0] sage: f( *(solns[ar] for ar in f.args()) ) 0
On Sunday, April 8, 2012 2:34:05 PM UTC+8, ancienthart wrote: > > Hi guys, > Some current code I'm playing around with: > > f(x,y) = (1-x)^2 + 100*(y - x^2)^2 >> >> solve([f.diff(ar) for ar in f.args()],f.args())[0] >> > > Gives me a list of solutions as: > >> [x=1;y=1] >> >> > Is there any way to programatically substitute this list of equalities > back into f? > > Joal Heagney > > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org