#19425: Order in symbolic ring: error calling operator
-----------------------------+-------------------------
       Reporter:  dkrenn     |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.10
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+-------------------------

Comment (by rws):

 Replying to [comment:1 cheuberg]:
 > {{{
 > sage: (x+x^2).series(x, 2).operator() is None
 > True
 > }}}
 The topmost operator in  symbolic series `pseries` is not a registered
 function, but it can be seen in the expression tree:
 {{{
 sage: (x+x^2).series(x, 2)._dbgprinttree()
 pseries @0x4e2c3b0, hash=0x0, flags=0x3
     1 (numeric) @0x35d70d0, hash=0x0, flags=0x7
     1 (numeric) @0x35d70d0, hash=0x0, flags=0x7
     -----
     function Order @0x4c197f0, serial=12, hash=0x0, flags=0x3, nops=1
         1 (numeric) @0x35d70d0, hash=0x0, flags=0x7
         =====
     2 (numeric) @0x35d7130, hash=0x0, flags=0x7
     -----
     x (symbol) @0x3e5d6d0, serial=5, hash=0xf4f4bfee, flags=0xf, domain=0,
 iflags=0000000000000000
     0 (numeric) @0x3647180, hash=0x0, flags=0x7
 }}}

 You can see that the function `Order` is there too. `GiNaC::Order` is
 registered in Pynac and imported to Sage (`symbolic/ginac.pxd`). But it
 somehow doesn't get into Sage's registry `sfunction_serial_dict` which is
 created and used in `symbolic/function.pyx`.

--
Ticket URL: <http://trac.sagemath.org/ticket/19425#comment:3>
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