Hi! On 2012-08-05, Timo Kluck <tkl...@gmail.com> wrote: > ------=_Part_23_12817751.1344186761653 > I think that the distinction between > > def f(x): > return x^2 > > and > > f(x) = x^2 > > is a common source of confusion, and everyone will run into it when trying > to define piecewise functions. It would be possible to introduce a > decorator, say @symbolic_function, that makes sure that > > @symbolic_function(x) > def f(x): > return x^2 > > makes f a symbolic function.
Please excuse a stupid question of someone who doesn't use symbolic functions or symbolic variables (I rather work with polynomials). Why should one want to turn a Python function (or method) into a symbolic function? I guess one couldn't do calculus (differentiate, integrate) the resulting symbolic function, or can one? So, beyond calculus, what can one do with a symbolic function that can't be done with a Python function? Best regards, Simon -- -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org