I'm observing a weird behaviour when substituting solutions of an equation that have been "lifted" or "promoted" from RR to QQ. Here is the example I am looking at:
R=QQ[k]
eq=ideal (14826671673479*k+7165390000000)
--Compute the solution using eigensolver
loadPackage "EigenSolver"
zeroDimSolve eq
--check that the solution is correct:
sub(-7165390000000/14826671673479,RR)
--apparently both lift and promote should give the right rational approximation
sub(lift(-.483277,QQ),RR)
sub(promote(-.483277,QQ),RR)
--substituting the rational approximation doesn't provide a solution
14826671673479*lift(-.483277,QQ)+7165390000000
14826671673479*promote(-.483277,QQ)+7165390000000
Why are these last two expressions so far away from zero? Any help understanding what is happening here or what would be the right way of computing rational approximations of the solutions would be highly appreciated.