sage: %time pts=maxima('makelist(elliptic_ec(float(1/(1+0.01*k))),k,
1,100)')
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.05 s
sage: pts0=[RR(x) for x in pts]

On 28 Mar, 15:39, ObsessiveMathsFreak <[email protected]>
wrote:
> > sage: %time pts=maxima('makelist(elliptic_ec(0.01*k),k,0,100)')
> > sage: pts0=map(n,pts)
>
> I'm not clear on what's happening here. I take it that the first call
> is bypassing overheads associated with multiple maxima calls. The
> second command does not work for me however.
>
> In any case, my current problem is that I need to be able to pass a
> list of values, not nessessaryly evenly spaced, to the elliptic_ec
> function and have them evaluated in good time. So for example, I would
> have a list generated by
>
> ms=[ 1/(1+b) for b in [1..100]]
>
> And I would like to call elliptic_ec on all the elements of this list
> and have the values evaluated in good time. Is there a way to
> accomplish this?

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to