On 11/1/11 7:07 PM, Michael Welsh wrote:
How do I make already defined symbolic expressions evaluate?
sage: var('x y')
(x, y)
sage: func = x*y
sage: x = 5
sage: y = 4
sage: x*y
20
sage: func
x*y
sage: f(x,y)=x*y
sage: f(5,4)
20
sage: f(x=5,y=4)
20
or
sage: g=x*y
sage: g.subs(x=5,y=4)
20
Jason
--
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