Construct extrapolation table with optimal convergence

Click For Summary

Homework Help Overview

The discussion revolves around constructing an extrapolation table with optimal rates of convergence for a cubic spline interpolant approximating a function. The original poster seeks to estimate a specific function value using uniformly distributed nodes and is exploring the implications of truncation errors in their cubic spline approximation.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • The original poster has computed approximations for a function using various node choices and is attempting to understand how to construct an extrapolation table. They question the nature of truncation errors and their predictability in the context of cubic splines.

Discussion Status

Participants are actively engaging with the original poster's inquiries, with some suggesting methods for visualizing errors and discussing the implications of the observed convergence rate. There is a lack of explicit consensus on the exact form of the truncation error, and multiple interpretations of the error behavior are being explored.

Contextual Notes

Participants note the complexity of deriving the truncation error for the cubic spline, particularly given its hybrid nature between clamped and natural forms. The original poster expresses a need for a clearer understanding of how to apply Richardson's extrapolation effectively.

drawar
Messages
130
Reaction score
0
Construct extrapolation table with optimal rates of convergence

Homework Statement



Let S be a cubic spline interpolant that approximates a function f on the given nodes x_{0},x_{1},...,x_{n} with the boundary conditions: S''(x_{0})=0 and S'(x_{n})=f'(x_{n}). Use S to estimate f(0.1234567) where f(x)=xe^{x} and the nodes are n+1 uniformly distributed points on [-1;1] for n=20, 40, 80, 160, 320. Construct an extrapolation table with optimal rates of convergence using these estimates.

Homework Equations





The Attempt at a Solution



I've already computed the approximation to f(0.1234567) using various choices of nodes, the results are listed below:
0.139678933961527 0.139678959983576 0.139679035306608 0.139679035488050 0.139679035532356

I just don't know how to do the last part, that is, find the extrapolation table with optimal convergence. I'm supposed to use Richardson's extrapolation to generate such a table but what hinders me is the truncation error involved in the cubic spline approximation. From what I've learned, extrapolation is applied only when the truncation error has a predictable form, like M = {N_1}(h) + {K_1}h + {K_2}{h^2} + {K_3}{h^3} + ....

edit:
Well after some searches (http://www.alglib.net/interpolation/spline3.php#header4) I've found out that the errors for clamped and natural cubic splines are O({h^4}) and O({h^2}) respectively, but have no idea how they are derived. My cubic spline is something kind of in-between, like half-clamped and half-natural.
 
Last edited:
Physics news on Phys.org
Did you plot (interpolation value)-(real value) as function of your node distances? A logarithmic scale can be useful.
 
mfb said:
Did you plot (interpolation value)-(real value) as function of your node distances? A logarithmic scale can be useful.

Yes. Here it is:
JaVcHbW.png


E is the absolute error and h is the distance between nodes (h=2/n for n=20,40,80,160,320)

The slope (and maybe the rate of convergence?) is 1.9993.
 
drawar said:
The slope (and maybe the rate of convergence?) is 1.9993.
Exactly (well, the exact value is 2 and not 1.9993).
 
mfb said:
Exactly (well, the exact value is 2 and not 1.9993).

Thanks. So is it safe to say that the error for my cubic spline is O({h^2}) because the rate of convergence is 2? If it is, then how the error form would look like, is it M = {N_1}(h) + {K_1}{h^2} + {K_2}{h^3} + {K_3}{h^4} + ... or something else?
 
I don't know what that formula expresses, but if N1 has no linear term, this looks reasonable.
 
I cannot access the link, and I don't know about Richardson's extrapolation.
 
mfb said:
I cannot access the link, and I don't know about Richardson's extrapolation.

Well, then hopefully you can access this: https://docs.google.com/viewer?a=v&...ymKG3t&sig=AHIEtbR1oV9rtANIhNQFrQOQFusrck0_rA . It's pretty much the same as the previous one, both serve as introductions to Richardson's extrapolation.

What I need is the behavior of truncation error, something like Eq.(24.1) in the article, without which I cannot apply the formulas to construct an extrapolation table.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
1
Views
6K
  • · Replies 36 ·
2
Replies
36
Views
8K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K