class FivePointStencil extends Derivative
{
constructor(f, epsilon)
{
super(f, epsilon);
}
gradient(x0)
{
let numerator = -this.function(x0 + 2 * this.epsilon) + 8 * this.function(x0 + this.epsilon) - 8 * this.functionf(x0 - this.epsilon) + this.function(x0 - 2* this.epsilon)
return numerator / (12 * this.epsilon);
}
}