Algorithms for division that provide a quotient and remainder.
naivediv(m, n)
longdiv(m, n)
m | the dividend |
---|---|
n | the divisor |
the quotient and remainder as a list
The naivediv
divides m
by n
by using repeated
division. The longdiv
function uses the long division
algorithm in binary.
Other algebra:
bilinear()
,
cubicspline()
,
fibonacci()
,
horner()
,
isPrime()
,
linterp()
,
nthroot()
,
polyinterp()
,
pwiselinterp()
,
quadratic()