Open axkr opened 2 years ago
The normalization of the quotient as normalization of the denominator leading coefficient to one is hard coded in the constructor. Maybe it would need an enumeration of possible normalizations defined in its ring.
The next JAS version will contain code to select between different quotient normalizations.
/** Quotient polynomial normalization, simplification. */
public static enum QuoNorm {
normNumLead, // normalize ldcf(numerator) == 1
normNumTrail, // normalize trcf(numerator) == 1
normDenLead, // normalize ldcf(denominator) == 1
normDenTrail // normalize trcf(denominator) == 1
};
/** Default quotient polynomial normalization, simplification.*/
public final static QuoNorm quoNorm = QuoNorm.normDenLead; // must be the default
But using other normalizations than QuoNorm.normDenLead
will crash code in various places.
Could you please help in spotting all those places and give hints on what would be a desirable solution?
Can the result poylnomials be "normalized" from the
approximantOfPade()
, so that the coefficient forx^0
is0
or1
.gives