Integrating Cubic Spline

$\begingroup$

Suppose that I have a finite number of samples of the function $f(x)$ for the range $a < x < b$. I don't have the expression for $f(x)$ but I can do a cubic spline interpolation. If I want to integrate the function $f(x)$ from $x=a$ to $x=b$, would the best approach be to simply do an exact integration for each of the cubic polynomial in the cubic spline, since the error would only be from the interpolation and not from the integration?

$\endgroup$ 3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like