import sympy.printing as printing
from IPython.display import display, Math, Latex
from sympy import *
from mpmath import *
from sympy.codegen.ast import aug_assign, For
init_printing()
c, d, c_max, d_max, jzeros = symbols("c d c_max d_max jzeros")
d_max.subs(d_max, 3)
c_max.subs(c_max, 3)
For(d, Range(d_max.subs(d_max, 3)), [jzeros.subs(jzeros, besseljzero(d, c_max))])
Why do I get this error (TypeError: cannot create mpf from d) when I execute the above code? I am trying to code according to this "For" documentation:
(see full text)