#10222: Bernoulli polynomial problem
-----------------------------------+----------------------------------------
   Reporter:  davidloeffler        |       Owner:  malb        
       Type:  defect               |      Status:  needs_review
   Priority:  minor                |   Milestone:  sage-4.6.1  
  Component:  commutative algebra  |    Keywords:  bernoulli   
     Author:  Francis Clarke       |    Upstream:  N/A         
   Reviewer:                       |      Merged:              
Work_issues:                       |  
-----------------------------------+----------------------------------------
Changes (by newvalueoldvalue):

 * cc: craigcitro (added)
  * status:  new => needs_review
  * author:  => Francis Clarke


Comment:

 In the attached patch I have rewritten most of the !`bernoulli_polynomial`
 code.  This solves this problem.

 In the case where the result is a polynomial, direct calculation from the
 list of coefficients is retained (for speed), but corrected for the case
 where x is not the variable.  This only works when the base ring is a QQ-
 algebra; previously an error was raised it if wasn't.

 A small increase in speed results from the odd Bernoulli numbers being
 zero, apart from the first.   This is more significant in the non-
 polynomial case.

 A couple of new doctests have been added.

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