Hi!
I'm not sure what you mean by
Also if I have the terms, and return on separate lines in the
definition then I get this error.
You _have_ to have the different statements on separate lines, like I
did. (Unless you use a semicolon to separate the statements, I
suppose.) Did you combine
def f(y,t): return (1+(bessel_J(0, gro)/bessel_J(2, gro)))*(r/
kro)*(bessel_J(1, r)/bessel_J(1,gro))*z.cos()-(bessel_J(0,r)/
bessel_J(2, gro))*(r**2/kro**2) if t != 0 else infinity
A few things:
(1) Your arguments to this function are y and t, but inside you use r
and z. r and z are still