Hi,
The following code is not plotting for some reason. The silder comes
up and when I move it nothing happens.
def exp_ikz_expansion(r, theta, l_max):
s = 0
for l in range(l_max):
s = s + (2*l + 1)*I**l*spherical_bessel_J(l, r)*legendre_P(l,
cos(theta) )
return s
r_, theta = var('r_, theta')
x = r_*cos(theta)
y = r_*sin(theta)
z = exp_ikz_expansion(r_, theta, 10).real()
@interact
def _(r=(10.0), l_max=(0..20)):
parametric_plot3d( [x, y, z], (r_, 0, r), (theta, 0, 2*pi) )
Help appreciated.
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
-~----------~----~----~----~------~----~------~--~---