#18141: special values of transcendental functions
-------------------------------+------------------------
       Reporter:  rws          |        Owner:
           Type:  enhancement  |       Status:  new
       Priority:  major        |    Milestone:  sage-6.6
      Component:  symbolics    |   Resolution:
       Keywords:               |    Merged in:
        Authors:               |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+------------------------

Comment (by rws):

 Replying to [comment:10 behackl]:
 > It seems that adapting the expansion from `.series()` is possible by
 implementing a `_series_`-method (this is somehow mentioned
 
[https://github.com/sagemath/sage/blob/master/src/sage/symbolic/function.pyx#L34-L37
 here] in `symbolic/function.pyx`.
 Yes, setting any of these functions in Python will override Pynac's
 implementation (and slow down its calls). In case of `_series_` it's
 dispatched to in `function::series`, see
 https://github.com/pynac/pynac/blob/master/ginac/function.cpp#L943.

 From experimentation I can say that if you define a
 `Function_zeta::_series_()` method it will be called with 6 arguments,
 e.g. `zeta(y).series(x==1,5)` will call the Python function
 `Function_zeta::_series_(self, (y,), {'var': x, 'options': 0, 'at': 1,
 'order': 5})` so you need to define it as `_series_(self, varlist,
 var=..., options=... , at=..., order=...)` and return an expression.

--
Ticket URL: <http://trac.sagemath.org/ticket/18141#comment:11>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to