Extended GiNaC interface to inum
Showing
-
Owner
There is a subtlety in GiNaC. The explicitly given ieps prescription for
value
is ignored ifcln::instanceof(value, cln::cl_R_ring)
Of course it would make sense to ignore the explicit value if
value
is indeed complex (cf. 63b4cc59). However, even if it is real, my old C++ interfacefor(long i=0;i<(*n)-1;i++) { w.append((z->r)+(z->i)*I); z++; }
would create an
cln::cl_R_ring
. We now check whetherz
is real and act accordingly.
Please register or sign in to comment