class Polynomial implements IReadDataBlock {

    public Polynomial adjustDegree() {
        int n = degree;
        while ((n >= 0) && Doubles.equals(0, get(n), EPSILON)) {
            --n;
        }
        if (n < 0) {
            return Polynomial.ZERO;
        }
        if (n == degree) {
            return this;
        }
        return new Polynomial(m_c, n);
    }

    private  Polynomial(final double[] coefficients, final int degree);

}