Opened 10 years ago

Last modified 10 years ago

#13033 closed defect

Conversion PARI -> RR fails for large exponents — at Version 2

Reported by: jdemeyer Owned by: was
Priority: major Milestone: sage-5.1
Component: interfaces Keywords: sd40.5 PARI MPFR exponent
Cc: zimmerma, benjaminfjones, was Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

sage: a = pari(10^6).erfc()
sage: a
3.15934761259943 E-434294481910
sage: a.debug()
[&=0000000000f84d10] REAL(lg=3):0400000000000003 (+,expo=-1442695040910):5ffffeb018acb072 9b56c6d11005bdc3
sage: RR(a)
5.64243263573681e124617551

The exponent changed from -434294481910 to 124617551.

Change History (2)

comment:1 Changed 10 years ago by was

Note that

sage: RealField(10000)('1e-434294481910') == 0
True
sage: RealField()('1e-434294481910') == 0
True

so in your example above, RR(a) should be 0.

comment:2 Changed 10 years ago by jdemeyer

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