Re: Sage symbolic functions question

11 views
Skip to first unread message

Burcin Erocal

unread,
Jan 10, 2012, 10:10:16 AM1/10/12
to Benjamin Jones, pynac...@googlegroups.com
Hi Benjamin,

On Mon, 9 Jan 2012 15:28:53 -0500
Benjamin Jones <benjami...@gmail.com> wrote:

> I have a question no one here at Sage Days 35.5 seems to know the
> answer to (or have an opinion about). I want to merge the work done in
> #1173 for the erf function on top of Sage-4.8.alpha6 where #11948 has
> been merged which adds support for numerical evaluation using PARI.
> How would you implement the ability to select the algorithm to use in
> the BuiltinFunction framework?
>
> My first thought was to implement the __call__ method to overwrite the
> one that gets inherited from BuiltinFunction. Can you think of any
> examples of doing something like this in the existing code base?

There weren't any examples of this in the Sage library. But it has
certainly come up before, within the context of numerical integration
for example:

http://trac.sagemath.org/sage_trac/ticket/8321#comment:12

As you probably saw already, I uploaded some patches to #12289:

http://trac.sagemath.org/sage_trac/ticket/12289

Let me know if that works for you.


Cheers,
Burcin

Reply all
Reply to author
Forward
0 new messages