When Sage is adding a real literal to a real number of high precision, shouldn't it calculate the sum in the high precision ring? Instead, Sage seems to calculate in double precision:
RF=RealField(150); RF
Real Field with 150 bits of precision
RF(0.9 + RF(1e-18))
0.90000000000000002220446049250313080847263336
RF(1.0+ RF(1e-18))
1.0000000000000000000000000000000000000000000
RF(1+ RF(1e-18))
1.0000000000000000010000000000000000000000000
I'm trying to use high precision arithmetic (2658 bits) in Sage to verify some results produced by the high precision semidefinite program solver sdpa_gmp. Sage's treatment of real literals in these calculations has made me anxious about the possibility that I'm overlooking other ways in which the calculations might be unreliable.
Is there anywhere an explanation of Sage's treatment of real literals in high precision arithmetic?
thanks, Daniel Friedan
thanks for