On 01/19/2012 05:57 PM, Eric Kangas wrote:
I have worked with bessel functions before and haven't had a problem
until now.
Code:
-----
r,p,z,ro,gro,g,k = var('r, p, z,ro,gro,g,k')
g = 1; k = 1; ro = 1; gro = 1
def Psi(r,z): return lambda r,z: (r*bessel_J(1, g*r))/(ro*bessel_J(1,
gro))*cos(k*z) if y != 0 and t != 0 else infinity
Error:
-----
Syntax Error
What are 'y' and 't'? When did it crash -- while you were typing it in,
when Psi was called, or when the returned function was called?
I tried guessing at some inputs and haven't seen the error. If you could
come up with a test case it would help!
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org