← Back to team overview

aesthete-team team mailing list archive

Re: mpmath related diffs

 

> The second one allows evaluation of things like sec(pi) by falling over to
> numericalization (is that a word?) of each argument before passing to eval.
> This may not work perfectly in every situation (try cos(-1)) but it's
> progress I think.
>

Just to check, do you get symbolic arguments working OK? e.g.
integrate(cos(x), (x,0,1))

As per http://code.google.com/p/sympy/issues/detail?id=2656 , the sympy
function (if one is available) would need to supersede the mpmath function,
or catch exceptions, for symbolic manipulations to be handled. If the
inclusion into the argument dictionary in Dynamic is reversed (see
D.rebuild_globals) this would work, but is there a numerical reason that
the mpmath library is preferred when functions are available in both? Or
does it improve compatibility and consistency with the other mpmath
functions? I'm afraid I'm a bit vague on the sympy core/mpmath differences
:s

P

Follow ups

References