Hi,
The following function gives me an error.
def test(l, r):
return complex(0, 1)**l*spherical_bessel_J(l, r)
sage: test(1, 1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/mc/PHY432/<ipython console> in <module>()
/home/mc/PHY432/<ipython console> in test(l, r)
/opt/sage/sage/local/lib/python2.5/site-packages/sage/structure/element.so
in sage.structure.element.RingElement.__mul__
(sage/structure/element.c:8632)()
/opt/sage/sage/local/lib/python2.5/site-packages/sage/structure/coerce.so
in sage.structure.coerce.CoercionModel_cache_maps.bin_op
(sage/structure/coerce.c:5833)()
TypeError: unsupported operand parent(s) for '*': '<type 'complex'>' and
'Symbolic Ring'
Help appreciated. Thank you
Mani chandra
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---