Dear Kees,

Thanks for your request.  I'm not an expert on special functions, but
it's not too hard to change which algorithm is used for any given
function.  If you are pretty sure there is this slowdown (not just on
your platform), I recommend opening a Trac ticket (trac.sagemath.org)
for this.  Especially if there are some arguments for which mpmath is
slower and other arguments for which it is faster, this could be
interesting (though if it's always faster *and* as accurate, which
seems to usually be the case - thanks, Fredrik! - that would be an
even more important ticket).

This doesn't precisely answer your question, but hopefully leads you
to thinking about what the best setup would be, and then hopefully
someone can take a stab at implementing it - perhaps you!

- kcrisman

On Nov 27, 8:15 am, KvS <[email protected]> wrote:
> Dear all,
>
> just a quick question/remark, today I was working (plotting etc.) with
> some quantities that involve (upper) incomplete gamma functions. Some
> operations took very long, as it turned out due to the incomplete
> gamma function evaluating very slowly for small arguments. Some
> testing showed that mpmath's version is a lot quicker (I've seen
> differences like 2~3 secs versus ~0.1 secs). Unfortunately I don't
> have SAGE on this computer so I can't post any code or exact numbers.
> Due to my setup (actually requiring SAGE function objects) I had to
> fiddle around and make several changes at several places to be able to
> use mpmath's version. I was wondering whether it might be possible &
> would be an attractive feature to modify SAGE's version in such a way
> that mpmath's version gets called when the function is called with a
> numerical argument?
>
> Many thanks, Kees

-- 
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