Slightly better results
authorSam Moore <[email protected]>
Tue, 16 Sep 2014 10:43:39 +0000 (18:43 +0800)
committerSam Moore <[email protected]>
Tue, 16 Sep 2014 10:43:39 +0000 (18:43 +0800)
commit0f3a7a9d2c6cc19852fae8ed048dcd1089d33250
tree0d8b36bf27967af5ea3709fa5feca0ebc3e78bb3
parent081b38a5f11d0eb093fdf3315051e9c1de7135fd
Slightly better results

Assuming we can trust Wolfram's Giant Ego, err, I mean Wolfram Alpha, to give exact results,
it is generally giving a better result than doubles.

Try simplifying the "a/b + c/d" cases next?

Also at the moment "(a + b)*c" does not simplify to "a*c + b*c" even if
a*c is exact.

Have to be careful because sometimes making the representation more exact
ends up making the conversion back to double have a bigger error.
src/paranoidnumber.cpp
src/paranoidnumber.h
src/tests/paranoidtester.cpp

UCC git Repository :: git.ucc.asn.au