First time here? Check out the FAQ!
answered 9 years ago
Short answer: yes with
print "g = %r" % g
Other short answer: no, you can not (easily) do that automatically.
Note that you can define g as a symbolic function
sage: g(x,y) = f.diff(x) sage: g (x, y) |--> 2*x
updated 9 years ago
Other short answer: no, you can not cannot (easily) do that automatically.