Checked content

File:Interpolation example polynomial.svg


Description IIllustration of polynomial interpolation of a data set. The same data set is used for other interpolation algorithms in the Interpolation.
Date 26 June 2007
Source self-made in Gnuplot
Author Berland

Based on png-version by User:Jitse Niesen (with gnuplot source code), and on svg-version by User:Cronholm144.

Gnuplot source code

set terminal svg fname "Vera" fsize 25
set output "Interpolation_example_polynomial.svg"
set key off
set xzeroaxis
set xtics axis 1,1
set ytics nomirror 1
set samples 300
set border 2
f(x) = - 0.0001521*x**6 - 0.003130*x**5 + 0.07321*x**4 - 0.3577*x**3 +  0.2255*x**2 + 0.9038*x
set yrange [-1.1:1.1]
plot f(x) with lines linetype 3 linewidth 4, \
     "-" with points linetype 1 pointtype 7 pointsize 0.7, \
       0 with lines linetype -1 linewidth 1
0 0
1 0.8415
2 0.9093
3 0.1411
4 -0.7568
5 -0.9589
6 -0.2794

Please use at least version 4.2 of Gnuplot for smooth lines in SVG.


Public domain This work has been released into the public domain by its author, I, Berland. This applies worldwide.
In some countries this may not be legally possible; if so:
I, Berland grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

The following pages on Schools Wikipedia link to this image (list may be incomplete):


Schools Wikipedia and SOS Children

SOS Children's Villages chose the best bits of Wikipedia to help you learn. More than 2 million people benefit from the global charity work of SOS Childrens Villages, and our work in 133 countries around the world is vital to ensuring a better future for vulnerable children. There are many ways to help with SOS Childrens Villages.