[sage-support] Re: sage much slower than ipython

2010-08-05 Thread Rajeev
> > Can you try doing > > sage: preparser(False) > sage: preparser(False) sage: from layered_ising_mc import layered_ising_mc sage: a = layered_ising_mc(n=16, J_p=20, h=19.94, beta=0.5) sage: a.set_initial_condition() sage: time data = a.monte_carlo(1000); a.check_consistency() CPU times: user 40.5

[sage-support] Re: sage much slower than ipython

2010-08-05 Thread Jason Grout
On 8/5/10 12:10 AM, Rajeev wrote: Hi, I was very surprised to find that sage is much slower than ipython for doing the same numerical task (monte carlo simulation using numpy arrays). Following is summary of the time taken - In [1]: from layered_ising_mc import layered_ising_mc In [2]: a = lay