Polynomial long division: Difference between revisions

Content added Content deleted
(Updated D entry)
(Updated D entry)
Line 690:
 
Tuple!(double[], double[]) polyDiv(in double[] inN, in double[] inD)
pure /*nothrow*/ {
// Code smell: a function that does two things.
static int trimAndDegree(T)(ref T[] poly) nothrow pure {
Line 697:
}
 
double[] N = inN.dup; // Not nothrow.
const(double)[] D = inD;
const dD = trimAndDegree(D);