#17379: Add a 'all' option to the .nth_root() method of algebraic numbers
-------------------------------------+-------------------------------------
       Reporter:  tmonteil           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.8
      Component:  number fields      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Thierry Monteil    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/tmonteil/add_a__all__option_to_the__nth_root___method_of_algebraic_numbers| 
 9f2c6b54e71b738fc14f1abd2b07938481fe6d54
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 Replying to [comment:6 tmonteil]:
 > I did it. Does `a**b` not just call `a.__pow__(b)` ? I do not see any
 difference with timeit. Note that there are other uses of `__pow__` on the
 same file.

 As far as I understand: It does. When you do `__pow__` there is an
 introspection (= lookup in the dictionary of methods). But for special
 methods there are dedicated slots and when you do `**` there is no lookup
 since you access directly to this slot.

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