1 | initial version |
Just put
f(x) = f
toward the top of your main function. The point is that we have deprecated substituting in f = x^2
because of nasty things like g = x^2 + y - y
where it's not clear whether g(1)
should be about the y
or the x
. (You can search the Sage email lists for more looooong discussions about this.)
Here is a live example. Looks nice!
(Naturally, this does assume that x
will be your variable.)