| Author |
Comment/Response |
pbollgruen
|
07/25/12 07:25am
Dear Mathematica Users,
i'm trying to do a recursion with a second variable, but it's not working. Is it possible to define such a function?
My attenpt was something like
f[n,x]:=1+(x^2)/f[n-1,k]
f[1,k]:=1
But when I now ask for something like f[3,1] the recursion exceeds the limit, my guess is that the second line is not recognized and the recursion goes on and on.
A recursion like
f[n_]:=1+(1^2)/f[n-1]
f[1]:=1
works fine, but I'd like to vary the x parameter, so I'd like to have it in there.
Thanks for your help!
URL: , |
|