#17531: allow algorithm keyword when calling BuiltinFunction
--------------------------------------+------------------------
       Reporter:  rws                 |        Owner:
           Type:  enhancement         |       Status:  new
       Priority:  major               |    Milestone:  sage-6.5
      Component:  symbolics           |   Resolution:
       Keywords:  symbolic functions  |    Merged in:
        Authors:                      |    Reviewers:
Report Upstream:  N/A                 |  Work issues:
         Branch:                      |       Commit:
   Dependencies:                      |     Stopgaps:
--------------------------------------+------------------------

Comment (by rws):

 Isn't this a bug? Hold as no effect:
 {{{
 sage: from sage.symbolic.function import BuiltinFunction
 sage: class MyFunction(BuiltinFunction):
 ....:    def __init__(self, name):
 ....:        BuiltinFunction.__init__(self, name, nargs=1)
 ....:    def _evalf_(self, x, parent=None, algorithm=None):
 ....:        print algorithm
 ....:        return x
 sage: f = MyFunction('f')
 sage: ex = f(0.0, algorithm='algoA', hold=True); ex
 algoA
 0.000000000000000

 sage: sin(0.0, hold=True)
 sin(0.000000000000000)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17531#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to