Polynomial long division: Difference between revisions

Line 899:
# the remaining numbers in the bottom row correspond to the coefficients of the remainder
r = board[-1].find_all {|x| not x.nil?}compact
q = [0] if q.empty?
[q, r]
Anonymous user