Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documentation:language_reference:objects:interpolatingfunction:functions:bspline [2026/11/13 19:20] – Maurits W. Haverkortdocumentation:language_reference:objects:interpolatingfunction:functions:bspline [2026/11/16 23:20] (current) – Maurits W. Haverkort
Line 1: Line 1:
 {{indexmenu_n>999}} {{indexmenu_n>999}}
 ====== BSpline ====== ====== BSpline ======
 +;;# 
 +<color #ed1c24>Modified in 0.9.1</color>
 +;;#
  
 ### ###
Line 18: Line 21:
 ===== Output ===== ===== Output =====
  
-  * //f// : an interpolating function of type //"BSpline"//. //f.x// and //f.y// are the sorted points and values, //f.knots// the knots, //f.degree// is $n$ and //f.coefficients// are the $N$ coefficients $c_j$.+  * //f// : an interpolating function of type //"BSpline"//. //f.x// and //f.y// are the sorted points and values, //f.knots// the knots, //f.degree// is $n$ and //f.coefficients// are the $N$ coefficients $c_j$. <color #ed1c24>Modified in 0.9.1</color>
  
 ### ###
Line 27: Line 30:
 A B-spline of degree $n$ reproduces every polynomial up to degree $n$ exactly, and for smooth data the error decreases as $h^{n+1}$ with the distance $h$ between the points; the $k$-th derivative as $h^{n+1-k}$. A higher degree is therefore more accurate for smooth data. For data with a jump or a kink a high degree oscillates more, see the example on the [[documentation:language_reference:objects:interpolatingfunction:start|interpolating function]] page. The coefficients solve a linear system that becomes worse conditioned with the degree; at degree 9 rounding changes them by about $10^{-14}$ relative, and the $k$-th derivative amplifies this. A B-spline of degree $n$ reproduces every polynomial up to degree $n$ exactly, and for smooth data the error decreases as $h^{n+1}$ with the distance $h$ between the points; the $k$-th derivative as $h^{n+1-k}$. A higher degree is therefore more accurate for smooth data. For data with a jump or a kink a high degree oscillates more, see the example on the [[documentation:language_reference:objects:interpolatingfunction:start|interpolating function]] page. The coefficients solve a linear system that becomes worse conditioned with the degree; at degree 9 rounding changes them by about $10^{-14}$ relative, and the $k$-th derivative amplifies this.
 ### ###
 +
 +;;# 
 +<color #ed1c24>New in 0.9.1</color>
 +;;#
  
 ### ###
Line 33: Line 40:
  
 ===== Example ===== ===== Example =====
 +;;# 
 +<color #ed1c24>Modified in 0.9.1</color>
 +;;#
  
 ### ###
Line 80: Line 90:
 ===== Table of contents ===== ===== Table of contents =====
 {{indexmenu>../#2|tsort}} {{indexmenu>../#2|tsort}}
 +
  
  
Print/export