Anonymous user
Polynomial long division: Difference between revisions
Updated D entry
(Updated D entry) |
(Updated D entry) |
||
Line 690:
Tuple!(double[], double[]) polyDiv(in double[] inN, in double[] inD)
pure
// Code smell: a function that does two things.
static int trimAndDegree(T)(ref T[] poly) nothrow pure {
Line 697:
}
double[] N = inN.dup;
const(double)[] D = inD;
const dD = trimAndDegree(D);
|