[sage-support] Re: substitution

2009-10-08 Thread Ranjit
^2*beta))==epsilon) does not. So I guess there's an upper limit to the number of operations that the expression being replaced can have to work in subs (). On Oct 8, 12:52 pm, Francois Maltey wrote: > Ranjit a écrit : > > > > > I'm trying to figure out how to do a s

[sage-support] Re: substitution

2009-10-08 Thread Ranjit
7, 4:20 pm, "ma...@mendelu.cz" wrote: > On 7 říj, 16:21, Ranjit wrote: > > > > > > > I'm trying to figure out how to do a simple substitution. I've the > > following code: > > > var('r beta beta_0 R a h') > > psi=functio

[sage-support] substitution

2009-10-07 Thread Ranjit
I'm trying to figure out how to do a simple substitution. I've the following code: var('r beta beta_0 R a h') psi=function('psi',r) sigma=function('sigma',r) H_0=function('H_0',r) H_grad = lambda psi : (1/2)*(beta/beta_0)*R^2*(psi.diff(r))^2 H_0(psi) = -(1/2)*(beta/beta_0-1)*psi^2 + beta*a*psi^

[sage-support] Re: list_plot3d

2009-09-12 Thread Ranjit
-M. Hampton > > On Sep 11, 5:43 pm, John H Palmieri wrote: > > > > > On Sep 11, 11:02 am, Ranjit wrote: > > > > Yeah, the sample code works for me too. I'm not sure I see what's > > > different about what I'm doing. > > > > Here&

[sage-support] Re: list_plot3d

2009-09-11 Thread Ranjit
np.arange(-32,32,0.05) eeM=[[ee(x,y) for x in grid] for y in grid] list_plot3d(eeM) Thanks, -Ranjit On Sep 11, 1:37 pm, Jason Grout wrote: > Ranjit wrote: > > I tried using the function list_plot3d to visualize a 2d matrix, but > > it doesn't seem to work. I tried it with both a

[sage-support] list_plot3d

2009-09-11 Thread Ranjit
I tried using the function list_plot3d to visualize a 2d matrix, but it doesn't seem to work. I tried it with both a numpy array and a sage matrix and in both cases the Jmol applet loads but then all I see is a white box. Right clicking gives the contextual menu, but none of the options seem to do