Modified version of Simpson Rule

1.4k Views Asked by At

I'm supposed to use some different version of Simpson's Rule in my Numerical Methods homework to compute some areas, considering the non-uniform spacing case .

Namely, I've got two equal length vectors $x,y$ representing the pairs $(x_i,f(x_i))$ and the components of the $x$ array aren't equally spaced.

Is there some modified version of Simpson's Rule that fits my purposes ? I couldn't find anything online. I know that I can just use Trap. Rule, but I was specifically asked to use Simpson's Rule.

1

There are 1 best solutions below

0
On BEST ANSWER

Simpson's Rule is generated by fitting a quadratic curve to each set of neighbouring three points. If the intervals are unequal you would have to generate your own formula to fit the data.