class Polynomial implements IReadDataBlock {

    public Polynomial derivate() {
        if (degree == 0) {
            return Polynomial.ZERO;
        }
        double[] result = Doubles.fromDegree(degree - 1);
        for (int i = 1; i <= degree; ++i) {
            result[i - 1] = i * get(i);
        }
        return new Polynomial(result, degree - 1);
    }

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

}