I'm using sympy to generate c++ that evaluate a polynomial whose coefficients are expressed as fractions of very large integers.
I would like to use MPFR to represent theses coefficients.
Is it possible to make sympy write my expressions as :
mpreal("3556524138052763")/mpreal("533531142144000") - mpreal("4492451542803491")/mpreal("6402373705728000")*eta
Instead of
3556524138052763.0/533531142144000.0 - 4492451542803491.0/6402373705728000.0*eta
Yes, it is Ok. But don't forget to set the precision in generated C++ code: