On Jan 23, 8:43 pm, kcrisman <[email protected]> wrote:
> But this whole thread was quite helpful to review the four (!)
> possibilities for doing evaluation: Maxima, ns, _fast_float_, and ring
> creation. Thanks!
Well, if you're making that list, you should also include Python:
def f(x, y):
return x^2 + y^2 - 1
or, in a .py file (without the preparser):
def f(x, y):
return x**2 + y**2 - 1
Or for blazing speed, you should be able to put this in a notebook
cell (untested):
%cython
def f(int x, int y):
return x*x + y*y - 1
Carl
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---