[Excel] Coefficienten derde orde polynoom uitrekenen

Pagina: 1
Acties:
  • 3.553 views sinds 30-01-2008
  • Reageer

  • Ludewig
  • Registratie: Januari 2001
  • Niet online
Momenteel plot ik mijn gegevens in excel, maak een 3e order polynome trendlijn en copy/paste dan de coefficienten in excel, omdat ik met die coefficienten verder wil rekenen. Dit kost nogal veel tijd. Ik vroeg me daarom af of iemand een mooie oplossing hiervoor heeft gevonden.

Met LINEST() schijnt het te kunnen: http://zimmer.csufresno.e...al/LINEST/LINESTfull.html (kijk naar de tekst bij het tweede screenshot)
Concentration goes in column A, the square of concentration goes in column B, and the resulting Absorbance in Column C. Then select the array B41:D45 and enter the equation =LINEST(C34:C38,A34:B38,TRUE,TRUE) and use Command+Enter (Mac) or Control+Shift+Enter (PC). The polynomial coefficients are found in row 41, with related statistics below.
Maar hierbij moet je je x-waardes in 3 kolommen zetten (x, x^2 en x^3), waar ik ook niet blij van word, omdat mijn spreadsheets al vol genoeg staan.

Verder vond ik nog de volgende site: http://www.j-walk.com/ss/excel/tips/tip101.htm
3rd Order Polynomial Trendline

Equation: y = (c3 * x^3) + (c2 * x^2) + (c1 * x^1) + b

c3: =INDEX(LINEST(y,x^{1,2,3}),1)
Deze methode heeft als voordeel dat je door INDEX te gebruiken geen arrayformules hoeft te gebruiken, en je hebt geen extra kolommen nodig voor x-waardes omdat je in de formule zelf de x-waardes tot 2 en 3 verheft (door =INDEX(LINEST(y,x^{1,2,3}),1). Helaas krijg ik deze formule niet werkend.

When a man finds a conclusion agreeable, he accepts it without argument, but when he finds it disagreeable, he will bring against it all the forces of logic and reason


  • Coffeemonster
  • Registratie: Juli 2000
  • Laatst online: 02-03 11:45
In je formule gebruik je een komma als scheidingsteken in de matrix (1,2,3), terwijl de komma in de Engelstalige Excel-versie standaard ook het scheidingsteken is tussen de parameters van een formule. Ik denk dat dat verwarring oplevert. Werkt het als je de komma's vervangt door puntkomma's, dus: =INDEX(LINEST(y,x^{1;2;3}),1) ? Ik heb hier de Nederlandstalige Excel, dus ik kan het niet controleren; =LIJNSCH(y;x^{3,2,1};WAAR;ONWAAR) werkt hier.

Look for something long enough and you will find it; look for something without understanding, and it will find you.
A normal day at the stock exchange


  • Ludewig
  • Registratie: Januari 2001
  • Niet online
In mijn engels-talige versie krijg ik een #VALUE-error bij "=LINEST(B1:B4;A1:A4^{1;2;3};1;0)" , terwijl dit volgens mij toch hetzelfde voorstelt als "=LIJNSCH(y;x^{3,2,1};WAAR;ONWAAR)".

Wat ook niet werkt:
=LINEST(B1:B4;(A1:A4)^{1;2;3};1;0)

=LINEST(B1:B4;(A1:A4)^{1};1;0) werkt wel, en geeft de goede coefficient, maar dat is dan een lineare regressie. Het probleem zit dus in die machtverheffing.

When a man finds a conclusion agreeable, he accepts it without argument, but when he finds it disagreeable, he will bring against it all the forces of logic and reason


  • Ludewig
  • Registratie: Januari 2001
  • Niet online
Het is mij zelf gelukt door de regional settings op Engels te zetten en de formule ( =LINEST(A3:A4,B3:B4^{3,2,1}) ) die ik op internet had gevonden in een excel-bestand te zetten. Vervolgens heb ik de settings teruggezet naar Nederlands en het excel-bestand weer geopend. Daardoor zet Excel zelf de formule om, en het eindresultaat was: =LINEST(A3:A4;B3:B4^{3\2\1}) . Ik kan in de help van Excel zo snel niet vinden wanneer je die backslash zou moeten gebruiken (ik had zelf een ";" verwacht). Maar het werkt tenminste.

When a man finds a conclusion agreeable, he accepts it without argument, but when he finds it disagreeable, he will bring against it all the forces of logic and reason