http://www.perlmonks.org?node_id=806454


in reply to Re^2: eq vs ==
in thread eq vs ==

Would you care to explain how you would do that, in the general case?

For example in one of my programs I have a few matrices in which I put parameters, solve some equation systems and in the end I calculate a trace over some of these matrices, and as a result I get another matrix. In that final matrix the sum over all rows and all columns should be equal, modulo numeric errors.

How would I compare (or even compute) these sums without using or comparing floating point numbers?

Perl 6 - links to (nearly) everything that is Perl 6.