(segment.elementAt(j)))).divide(h.pow(step),MathUtils.CONTEXT);
derivated.add(diff);
}
diff = derivated.elementAt(1).subtract(derivated.firstElement());
derivated.insertElementAt(derivated.firstElement().subtract(diff), 0);
derivated.insertElementAt(derivated.firstElement().subtract(diff), 0);
derivated.insertElementAt(derivated.firstElement().subtract(diff), 0);
return derivated;
}