Opened 8 years ago

Closed 8 years ago

#13895 closed defect (fixed)

Fix ArithmeticError: 0^0 in rings/polynomial/polynomial_modn_dense_ntl.pyx

Reported by: mjo Owned by: AlexGhitza
Priority: major Milestone: sage-5.8
Component: algebra Keywords:
Cc: Merged in: sage-5.8.beta2
Authors: Michael Orlitzky Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #13894 Stopgaps:

Status badges

Description

The few remaining instances of this error are tracked at #13786. In this case,

sage: R.<x> = PolynomialRing(Integers(100), implementation='NTL')
sage: R(0)^0
...
ArithmeticError: 0^0 is undefined.

Attachments (1)

sage-trac_13895.patch (2.5 KB) - added by mjo 8 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 8 years ago by mjo

  • Authors set to Michael Orlitzky
  • Status changed from new to needs_review

Changed 8 years ago by mjo

comment:2 Changed 8 years ago by tscrim

  • Dependencies set to #13894
  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review

Looks good to me. I'm adding #13894 as a dependency to make so the following works:

sage: R.<x> = PolynomialRing(Integers(1), implementation='NTL')
sage: R(0)^0
0

Thanks,
Travis

comment:3 Changed 8 years ago by jdemeyer

  • Merged in set to sage-5.8.beta2
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.