#5722: [with patch, needs review] fast callable pow
------------------------------+---------------------------------------------
 Reporter:  robertwb          |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  critical          |   Milestone:  sage-3.4.1
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------

Comment(by mabshoff):

 Oops, I spoke too soon in person. There are two doctest failures that need
 fixing:
 {{{
 sage -t -long "devel/sage/sage/ext/fast_callable.pyx"
 **********************************************************************
 File
 "/scratch/mabshoff/sage-3.4.1.rc2/devel/sage/sage/ext/fast_callable.pyx",
 line 2213:
     sage: fast_callable(sin(x)/x, vars=[x], domain=RDF).get_orig_args()
 Expected:
     {'domain': Real Double Field, 'code': [0, 0, 16, 0, 0, 7, 2],
 'py_constants': [], 'args': 1, 'stack': 2, 'constants': []}
 Got:
     {'domain': Real Double Field, 'code': [0, 0, 16, 0, 0, 8, 2],
 'py_constants': [], 'args': 1, 'stack': 2, 'constants': []}
 **********************************************************************
 1 items had failures:
 }}}
 And
 {{{
 sage -t -long "devel/sage/sage/ext/gen_interpreters.py"
 **********************************************************************
 File
 "/scratch/mabshoff/sage-3.4.1.rc2/devel/sage/sage/ext/gen_interpreters.py",
 line 2772:
     sage: print buff.getvalue()
 Expected:
         case 7: /* div */
           {
             double i1 = *--stack;
             double i0 = *--stack;
             double o0;
             o0 = i0 / i1;
             *stack++ = o0;
           }
           break;
     <BLANKLINE>
 Got:
         case 8: /* div */
           {
             double i1 = *--stack;
             double i0 = *--stack;
             double o0;
             o0 = i0 / i1;
             *stack++ = o0;
           }
           break;
     <BLANKLINE>
 <SNIP>
 }}}

 I think that just the doctests need to be updated, but I will leave this
 to you :)

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5722#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to