On Sep 11, 11:02 am, Ranjit <rjcha...@gmail.com> wrote:
> Yeah, the sample code works for me too. I'm not sure I see what's
> different about what I'm doing.
>
> Here's an example of something that doesn't work for me:
>
> var("rho_X rho_Y R")
> R=6
> rho=sqrt(rho_X^2+rho_Y^2)
> EE(rho_X,rho_Y)=exp(-rho/R)
> ee=fast_float(EE)
> grid=np.arange(-32,32,0.05)

I don't know what "np.arange" is.  I used "srange" instead; is that
similar?

> eeM=[[ee(x,y) for x in grid] for y in grid]
> list_plot3d(eeM)

This didn't work for me, either -- maybe there are too many points for
jmol to handle it?  When I used

grid = srange(-32, 32, 0.1)

it worked, though it is a bit sluggish.  It is more responsive the
larger I make that last parameter.

  John

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

Reply via email to