#32115 closed defect (fixed)

doctest that pynac series bug has been fixed

Reported by: gh-DaveWitteMorris Owned by:
Priority: minor Milestone: sage-9.4
Component: symbolics Keywords: pynac, series
Cc: Merged in:
Authors: Dave Morris Reviewers: Frédéric Chapoton
Report Upstream: N/A Work issues:
Branch: 87e8818 (Commits, GitHub, GitLab) Commit: 87e881803587be99e413b96c0e98220acf5e0204
Dependencies: Stopgaps:

Status badges

Description

Pynac issue 207 says that exp(log(1+x)*(1/x)).series(x) raises a ValueError: power::eval(): division by zero, but it has worked fine at least as far back as 9.1:

sage: exp(log(1+x)*(1/x)).series(x)                                                                                      
(e) + (-1/2*e)*x + (11/24*e)*x^2 + (-7/16*e)*x^3 + (2447/5760*e)*x^4 + (-959/2304*e)*x^5 + (238043/580608*e)*x^6 + (-67223/165888*e)*x^7 + (559440199/1393459200*e)*x^8 + (-123377159/309657600*e)*x^9 + (29128857391/73574645760*e)*x^10 + (-5267725147/13377208320*e)*x^11 + (9447595434410813/24103053950976000*e)*x^12 + (-1447646915836493/3708162146304000*e)*x^13 + (225037938358318573/578473294823424000*e)*x^14 + (-29911565062525361/77129772643123200*e)*x^15 + (3651003047854884043877/9440684171518279680000*e)*x^16 + (-38950782815463986767/100969884187361280000*e)*x^17 + (104388909491649724435759747/271211974879377138647040000*e)*x^18 + (-843527474424845338522843/2196048379590098288640000*e)*x^19 + Order(x^20)

This ticket adds a doctest to ensure that the problem doesn't return.

Change History (6)

comment:1 Changed 12 months ago by gh-DaveWitteMorris

  • Branch set to public/32115

comment:2 Changed 12 months ago by gh-DaveWitteMorris

  • Commit set to 87e881803587be99e413b96c0e98220acf5e0204
  • Status changed from new to needs_review

New commits:

87e8818trac 32115 doctest pynac series bug

comment:3 Changed 12 months ago by gh-DaveWitteMorris

  • Component changed from PLEASE CHANGE to symbolics

comment:4 Changed 12 months ago by chapoton

  • Reviewers set to Frédéric Chapoton
  • Status changed from needs_review to positive_review

ok

comment:5 Changed 12 months ago by gh-DaveWitteMorris

Thanks for the review!

comment:6 Changed 11 months ago by vbraun

  • Branch changed from public/32115 to 87e881803587be99e413b96c0e98220acf5e0204
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.