http://qs1969.pair.com?node_id=482096


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