> Do you know about _fast_float_? It makes it vastly faster to do > brute force evaluation (it'll easily give you a factor of 10 speedup). > > No, I don't know _fast_float. And I was ignoring srange too :) You learned me two thinks.
Thanks Laurent > Ignore the wall time below: > > sage: f = lambda x : (x+1)**2 > sage: g(x) = (x+1)^2 > sage: gfast = g._fast_float_(x) > sage: time v = [f(i) for i in srange(float(0),float(1),float(0.0001))] > Time: CPU 0.10 s, Wall: 3.80 s > sage: time v = [gfast(i) for i in srange(float(0),float(1),float(0.0001))] > Time: CPU 0.01 s, Wall: 0.55 s > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---