Three Point Formula

A three point formula can be constructed which uses the difference in results of the forward and backward two point difference schemes, and computes a three point derivative of that to get the second derivative.
 

Three Point Formula

Input Data

x0=0, x1=1, x2=2 y0=1, y1=4, y2=9

Solution

Ans=2

A three point formula can be constructed which uses the difference in results of the forward and backward two point difference schemes, and computes a three point derivative of that to get the second derivative.