23 Aug
2018
23 Aug
'18
7:22 a.m.
Dear all, I use GiNaC to perform analytic calculation, but when I try to use .numer() and .denom() methods, I get a wrong result. 1. expr.numer()/expr.denom() is not always equal to the original expression!!! 2. Using .numer_denom() method could always get the correct answer. I attach a simple code source file and logger file to check that problem. The logger file will be different when you run the code on your computer. Yours, Yang