Changes between Initial Version and Version 1 of Ticket #14229, comment 14


Ignore:
Timestamp:
07/18/14 18:56:58 (7 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14229, comment 14

    initial v1  
    22{{{
    33sage: maxima_calculus(1) # make sure maxima_lib is initialized
    4 sage: from sage.libs.ecl import EclObject
    5 sage: set_complex=EclObject("(setf $DOMAIN '$COMPLEX)")
    6 sage: set_real=EclObject("(setf $DOMAIN '$REAL)")
    7 sage: sage: %timeit set_complex.eval()
    8 100000 loops, best of 3: 5.31 us per loop
     4sage: from sage.libs.ecl import EclObject,ecl_eval
     5sage: set_complex=ecl_eval("(defun sc () (setf $DOMAIN '$COMPLEX))")
     6sage: set_real=ecl_eval("(defun sc () (setf $DOMAIN '$REAL))")
     7sage: %timeit set_complex()
     8100000 loops, best of 3: 2.14 µs per loop
    99sage: %timeit maxima_calculus("domain: complex")
    10 10000 loops, best of 3: 145 us per loop
     1010000 loops, best of 3: 146 µs per loop
    1111}}}
    1212For comparison: