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
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (949, 0))

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/home/nooniensoong97/<ipython console> in <module>()

/home/nooniensoong97/programs/sage-4.7.2/local/lib/python2.6/site-
packages/sage/calculus/all.pyc in symbolic_expression(x)
94 return vector(SR,x)
95 else:
---> 96 return SR(x)
97
98 import desolvers

/home/nooniensoong97/programs/sage-4.7.2/local/lib/python2.6/site-
packages/sage/structure/parent.so in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7326)()

/home/nooniensoong97/programs/sage-4.7.2/local/lib/python2.6/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3268)()

/home/nooniensoong97/programs/sage-4.7.2/local/lib/python2.6/site-
packages/sage/structure/coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3171)()

/home/nooniensoong97/programs/sage-4.7.2/local/lib/python2.6/site-
packages/sage/symbolic/ring.so in
sage.symbolic.ring.SymbolicRing._element_constructor_ (sage/symbolic/
ring.cpp:4418)()

TypeError:


Some sort of syntax error I don't see any.

-- 
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

Reply via email to