cos(k rho)
sin(rho)
-------- - cos(rho)
rho
-------------------
rho
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