#17852: Small cleanup in rings.arith and rings.integer
-------------------------------------+-------------------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.6
      Component:  basic arithmetic   |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/17852                 |  cbbb06fa27b0b9178ad3f9d0de3dc3235c5ec1c3
   Dependencies:  #16878             |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_work


Comment:

 There is a test in `doc/en/developer/coding_basics.rst` that uses
 `Integer.powermod_ui` as an example for difference behavior for 32 bits
 and 64 bits. Do you have an other example in mind?

 Replying to [comment:48 jdemeyer]:
 > I'm not sure that I like this:
 > {{{
 > sage: a = binomial(float(1001), float(1)); a
 > 1001.0
 > sage: type(a)
 > <type 'sage.rings.real_double.RealDoubleElement'>
 > }}}
 >
 > Shouldn't `float` input also give `float` output?

 Right. On the previous version we had
 {{{
 sage: type(binomial(5r,2r))
 <type 'int'>
 sage: type(binomial(5r,2))
 <type 'sage.rings.integer.Integer'>
 sage: type(binomial(5,2r))
 <type 'sage.rings.integer.Integer'>
 }}}
 I will change that.

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