I have a fairly complex equation containing many terms, I can use the NDSolve
for solving the differential equation for lesser terms (6400ish). But can't do it for let's say 10^4 terms, due to the error "$RecursionLimit::reclim: Recursion depth of 1024 exceeded." I modified the code (provided below) it to have a higher recursion limit, but it still treats the recursion limit to be 1024. Can someone please help me with the situation?
Clear[x]; (x =
x /. First[
Block[{$RecursionLimit = 10^4},x=
NDSolve[{x'[t] == eqn, x[0] == x0}, Fraction[x], {t, 0, tF},
WorkingPrecision -> 30, Method -> "StiffnessSwitching",
MaxSteps -> 10^5]]]);
eqn
? $\endgroup$x=
, which occurs in two places. Definingx
in terms of itself is a good way to get infinite recursion. $\endgroup$Fraction[x]
? $\endgroup$