English
Source / code snippets

Interpolation to Neville-Aitken

 

p.specht

wants one from Messwerten y To different, - not absolutely in equal intervals vorliegenden - x-Values without large detour over Polynome a practice-scheduler with x-Values in equal intervals make, bid itself the take action the gentlemen Aitken and Neville on. thereby can ggf. slight further Messwerte added, so the Result more precisely becomes.
Window Title "Interpolation to Aitken-Neville"
' Q: Wikipedia, div. professional journals
Window Style 24
Window 0,0 - %maxx,%maxy
print " The Interpolationsformel of Aitken and Neville is dann"
print " particularly efficient, if from about twice so many Stütz-"
print " to put only few values rasch interpolation go should,"
print " without that the Interpolationspolynom self demand is."
print
declare x![25],y![25],n&,i&,a!,b!,s!
declare p![25,25],k&,p1!,p2!
print " Eingabeteil:"
print " amount Wertepaare [max. 25]: ";:input n&

whileloop 0,n&-1:i&=&Loop

    print int(i&+1);". Wertepaar: x = ";:input x![i&]
    print         "              y = ";:input y![i&]

endwhile

print
print " area, in the y-values interpolation go should:"
print " From: ";:input a!
print " To: ";:input b!
print " Schrittweite: ";:input s!
print
print " Berechnung Start with [Button]!"
waitinput
cls
print
print " Result:"
print "          x                        y    "
print "-----------------------------------------------"
k&=0

whileloop 0,n&-1:i&=&Loop

    p![i&,k&]=y![i&]

endwhile

Naechstes:

Whileloop 0,n&-2:k&=&Loop

    whileloop k&+1,n&-1:i&=&Loop

        p1!=(a!-x![i&-k&-1])*p![i&,k&]-(a!-x![i&])*p![i&-1,k&]
        p2!=x![i&]-x![i&-k&-1]
        p![i&,k&+1]=p1!/p2!

    endwhile

endwhile

print a!,p![n&-1,n&-1]'= Results

if a!<b!:a!=a!+s!:goto "Naechstes":endif

    Print "OK.";:waitinput:End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
07/19/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.401 Views

Untitledvor 0 min.
Erhard Wirth06/14/24
p.specht11/18/21
RudiB.11/18/21
Wilfried Friebe11/17/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie