#12257: doctest that only integer +/- 1 gets special treatment
-------------------------+-------------------------------------------------
       Reporter:  was    |        Owner:  burcin
           Type:         |       Status:  needs_review
  defect                 |    Milestone:  sage-6.8
       Priority:  minor  |   Resolution:
      Component:         |    Merged in:
  calculus               |    Reviewers:
       Keywords:  pynac  |  Work issues:
        Authors:  Ralf   |       Commit:
  Stephan                |  447ab202f1ed5ab34ec87c7f73d588acd5c9577a
Report Upstream:  N/A    |     Stopgaps:
         Branch:         |
  u/rws/12257            |
   Dependencies:         |
  #18088, #18362         |
-------------------------+-------------------------------------------------

Old description:

> This is really bad
> {{{
> sage: 1.0 * pi
> pi
> sage: sin(1.0 * pi)
> 0
> }}}
> This is good:
> {{{
> sage: maxima('sin(%pi*1.0)')
> sin(1.0*%pi)
> sage: maxima('1.0*%pi')
> 1.0*%pi
> }}}
>
> This is likely the fault of ginac doing something stupid with 1.0 == 1.
>
> Ken Ribet pointed this out during the JMM 2012 meeting.

New description:

 This is just a doctest of a fix already in main Sage.

 Original description:

 This is really bad
 {{{
 sage: 1.0 * pi
 pi
 sage: sin(1.0 * pi)
 0
 }}}
 This is good:
 {{{
 sage: maxima('sin(%pi*1.0)')
 sin(1.0*%pi)
 sage: maxima('1.0*%pi')
 1.0*%pi
 }}}

 This is likely the fault of ginac doing something stupid with 1.0 == 1.

 Ken Ribet pointed this out during the JMM 2012 meeting.

--

Comment (by rws):

 The `sin(1.0*pi)` issue is now #18697.

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