some improvements (hopefully) for the printing routines.
Hello everybody, I have two problems with the current CLN-source printing functions. Firstly, it prints integers as approximate real numbers. This is a problem in exponentials. If I have something to the power two (i.e., the integer two) it gets printed as something that is two only approximately. If the base of this power is negative, I do not even get a real result out of this, which certainly is what I would expect if I square a real number! Generally, I would say that if one has, say, some polynomial that contains only integer coeffiecients the user probably is interested in the integer result after filling in numbers and not is some approximation of it. Furthermore I don't think it hardly ever hurts, printing an integer as an integer in CLN-source. For these reason I think it is bad to print in CLN C++-source output integers as if they were real numbers. Secondly, if you print a floating point number as CLN-source it does not contain the precision. This way, it may be that a lot of precision is wasted. A patch is included that is supposed to solve these two things. Greetings, Chris Dams
Hi! On Tue, Oct 22, 2002 at 04:04:21PM +0200, Chris Dams wrote:
A patch is included that is supposed to solve these two things.
Applied. Thanks! Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
participants (2)
-
Chris Dams
-
Christian Bauer