Opened 3 years ago

Last modified 3 years ago

#23459 new defect

QuadraticField(D) fails for large D

Reported by: vdelecroix Owned by:
Priority: major Milestone: sage-8.1
Component: number fields Keywords: bug
Cc: mmezzarobba Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by vdelecroix)

sage: QuadraticField(4**1000+1)
Traceback (most recent call last):
...
ValueError: Cannot convert NaN or infinity to Pari float

(see the complete traceback). With appropriate embedding however it succeeds

sage: QuadraticField(4**1000+1, embedding=AA(4**1000+1).sqrt())
Number Field in a with defining polynomial x^2 - 114813069527425452423283320117768198402231770208869520047764273682576626139237031385665948631650626991844596463898746277344711896086305533142593135616665318539129989145312280000688779148240044871428926990063486244781615463646388363947317026040466353970904996558162398808944629605623311649536164221970332681344168908984458505602379484807914058900934776500429002716706625830522008132236281291761267883317206598995396418127021779858404042159853183251540889433902091920554957783589672039160081957216630582755380425583726015528348786419432054508915275783882625175435528800822842770817965453762184851149029377

see also this ask question.

Attachments (1)

23459_traceback.log (5.1 KB) - added by vdelecroix 3 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 3 years ago by vdelecroix

  • Cc mmezzarobba added
  • Description modified (diff)

comment:2 Changed 3 years ago by jdemeyer

Traceback please!!

Changed 3 years ago by vdelecroix

comment:3 Changed 3 years ago by vdelecroix

  • Description modified (diff)
Note: See TracTickets for help on using tickets.