![]() |
[Home] [Lexikon] [Aufgaben] [Tests] [Kurse] [Begleitmaterial] [Hinweise] [Mitwirkende] [Publikationen] |
Mathematik-Online-Lexikon: | |
Interpolation der Sinusfunktion |
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z | Übersicht |
>> % Interpolationsdaten >> x=[0:4]*pi/4; >> y=[0, 1/sqrt(2), 1, 1/sqrt(2), 0]; >> % Interpoland ermitteln >> p=polyfit(x,y,4) p = 0.0376 -0.2361 0.0583 0.9820 0.0000 >> % Interpoland auswerten >> t=linspace(0,pi); >> g=polyval(p,t); >> % Interpolationsfehler sin(x)-p(x) darstellen >> plot(t,sin(t)-g)
Interpolationsfehler:
automatisch erstellt am 25. 1. 2006 |