On 25 July 2011 16:57, Devon McCormick <[email protected]> wrote: > Based on a quick test, it looks like it gives a result consistent with the > integer definition of GCD: if you divide both terms by the answer, you get > integer results: > ................ > gcdDivBy=: 4 : '(x;y)%&><x +. y' > ................ > 3 4 5 gcdDivBy 12.25 > 12 16 20 > 49 49 49
However, with `more real' real numbers: 1p1 gcdDivBy 1p2 4.92635e11 1.54766e12 x: 1p1 gcdDivBy 1p2 8867428937083r18 7738291556936r5 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
