Long story short I had a detailed question and then the session timed out and killed it!
Quickly then, if we calculate something recursively Maple acts differently to other languages.
For example, in Python:
Is interpreted as:
Is Interpreted as:
And there in lies my problem. Logically, I wish to use a iterative algorithm to work out an expression of the nth derivative of a function from the (n-1) derivative. However, doing this is in maple brings up "error (in Test) too many levels of recursion".
For context, Minimum Working Example:
>for i from 1 to 50 do
Error, (in TestDerivative) too many levels of recursion
Ideally, this code would output the limit of the second derivative at zero by differentiating the first derivative and then the limit of the third derivative at zero by differentiating the second derivative etc. But what Maple is trying to do is to find the limit of the second derivative by differentiating the function then differentiating the result of that, then to find the limit of the third derivative it will first derivative by differentiate the function, then the second by differentiating the result, then third derivative by differentiating the result of that. If I have the analytic expression for the 5th derivative and I wanted the expression for the 6th derivative, I do not want to work out the 1st, 2nd, 3rd, 4th and then 5th derivative when I've already an of the expression of the 5th derivative!
I will note, it is possible to avoid the problem by using different names at each step but that does not solve the iterative problem. Is there anyway to force maple to overwrite a function name? Is there a seperate solution? Or is maple just that daft in this case?
Thanks for the help,