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