On Sep 15, 2010, at 20:12 , Mike wrote: > Hi, I'm wondering if it is possible to insert a number into symbolic > equation. For example: > > sage: y = x^2 > sage: diff(y) > 2*x > > now is it possible to take the results of the derivative, define x as > say 3, and get a numeric answer? Thanks
Try this: sage: g = diff(y) sage: g x |--> 2*x sage: g(3) 6 HTH Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds ----------- Like the ski resort full of girls hunting for husbands and husbands hunting for girls, the situation is not as symmetrical as it might seem. - Alan MacKay -- -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
