Does the error you get look as follows?

TypeError: Error executing code in GP:
CODE:
        sage[16385]=ellj(sage[16384]);
PARI/GP ERROR:
  ***   at top-level: sage[16384]=0.0010000000
  ***                     ^--------------------
  ***   _[_]: not a vector.

This was supposed to be fixed by #15446, but apparently the fix was not 
perfect.  You can try using the PARI library interface instead, which is 
both faster and more robust:

sage: pari.set_real_precision(500)
sage: v = []
sage: C = ComplexField(500)
sage: for i in range(1,1e4):
....:     a = C((i*I+1)/1000)
....:     v.append(pari(a).ellj())

Peter

Op donderdag 19 juni 2014 20:46:41 UTC+1 schreef Hao Chen:
>
> I was trying to compute j-invariants of list of points in the
> upper half plane using pari in sagemathcloud, 
> when I noticed that it crashes as long as the list gets long. 
> Specifically, 
> the following code...
>
> %default_mode gp
> \p 500
> %default_mode sage
> v = []
> C = ComplexField(500)
> for i in range(1,1e4):
>     a = C((i*I+1)/1000)
>     v.append(gp.ellj(a))
>
> ...generates a 'PARI\GP interpreter crashed ...' error.  Any ideas? Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-nt" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/sage-nt.
For more options, visit https://groups.google.com/d/optout.

Reply via email to