I want to construct polynomials (or just function) $f_n$ from $f_{n-1}$ using mathematica. For some kind of reason, I didn't manage to do this. So basically something like a recurrence table, but for function.
I do have it for sagemath, so perhaps if possible, I'd like somehow to convert that to mathematical. I have something like this
def T(x,y,n):
return x if n == 0 else x^2*T(y^2*x,2y+4,n-1)
In fact my function is actually more complicated, but just to give an example. Is there a way to write the analogue of this in mathematica?
Thank you
T[x_, y_, n_] := 0 /; n == 0
$\endgroup$