On Jan 29, 2009, at 11:51 AM, Robert Close wrote: > I'm trying to do some symbolic calculus and am having trouble with > the special function spherical_bessel_J(). I can't get it to work > when the argument contains two factors. > Here is a simple program: > k=var('k'); > k=maxima(k); > rho=var('rho'); > rho=maxima(rho); > arg=var('arg'); > arg=maxima(arg); > arg=k*rho; > f=cos(arg); > print f; > f=spherical_bessel_J(1,rho); > print f; > f=spherical_bessel_J(1,arg); > print f; > > The first two print statements are fine: > > cos(k rho) > > sin(rho) > -------- - cos(rho) > rho > ------------------- > rho > But the program hangs and never reaches the third print statement. > What is wrong?
I'm not sure, looks like some pexpect issue. However, this works fine: sage: arg = var('arg') sage: f = spherical_bessel_J(1,var('arg')); f (sin(arg)/arg - cos(arg))/arg sage: print f sin(arg) -------- - cos(arg) arg ------------------- arg --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---