in reply to Re^10: Algorithm for cancelling common factors between two lists of multiplicands
in thread Algorithm for cancelling common factors between two lists of multiplicands
You entered a 4x1 matrix, and so that's why you got an answer of 1. (The code works on general matricies and does not assume the 2x2 case.) Enter the data as a 2x2 matrix to get the result you expect:
$ ./fet 989 9400 43400 2400 ^D ... tons of output ...
Cheers,
Tom
Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^12: Algorithm for cancelling common factors between two lists of multiplicands
by BrowserUk (Patriarch) on Aug 09, 2005 at 02:04 UTC | |
by tmoertel (Chaplain) on Aug 09, 2005 at 06:16 UTC |
In Section
Seekers of Perl Wisdom