Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sequence of functions

How do I define a sequence of functions in Sage?

I'd like to do something like

f(0)(a, b) = a * b
f(n)(a, b) = a + b * f(n-1)(a+b, a-b)

Such that when I use it, I could e.g. solve for x in

f(3)(x, x+1) = 1