3 ms·
Even simplifying after every operation, in the typical case exact rationals grow exponentially in the number of terms in the computation. This means that either
by stephencanon 8y ago
Even simplifying after every operation, in the typical case exact rationals grow exponentially in the number of terms in the computation. This means that either:
(a) you cannot use them for any non-trivial computation.
(b) you have to round them, in which case they are strictly worse than floating-point numbers because they have redundant representations and a very non-uniform distribution.