@Test
public void testEvaluate() {

    double[] x=new double[20];
    DataBlock X=new DataBlock(x);
    X.randomize();
    double y0 = Polynomial.evaluate(x, .25);
    Polynomial p = Polynomial.of(x);
    double y1 = p.evaluateAt(.25);
    assertEquals(y0, y1, EPS);
}