Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default coefficients of polynomial

How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default coefficients of polynomial

Select a 6 column x 1 row range and enter the array formula:

=LINEST(B2:B51,A2:A51^{1,2,3,4,5})

Use ctrl+shift+enter to exeute.

e.g. with

x 1 2 3 4 5 6
y 3 5 7 8 9 11

the formula returns the six coefficients in descending order:

y = -0.016666667x^5 + 0.333333333x^4 -2.416666667x^3 +7.666666667x^2
-8.566666667x +6


On 9 Mar, 09:13, Doublee wrote:
How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default coefficients of polynomial

I wouldn't try calculating the coeificants yourself. It is not easy and
there are many approximations on how tto do it. You probably won't get the
same answers as the numbers on the graph.

I would take the coieffficants that excel got and create a formula base on
those numbers such as

=($A$1 * (A10^5)) + ($A$2 * (A10^4)) + ($A$3 *(A10^3) + ($A$4 * (A10^2)) +
($A$5 * (A10)) + $A$6


Then you can plot any value of N (cell A10) and get a value of Y. I thought
about doing the same thing a couple of years ago, but gave up because it was
more complicated than I expected. Excel already gave me numbers that was
accurate. There are lots of approximations on geting the Best fit. I made
some minor adjustments to the standard methods in excel. I needed a Y
Intercept that was attone so I changed the settting in my graph.

"Doublee" wrote:

How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default coefficients of polynomial

What I meant to say is that I need the equations for the coefficients of the
polynomial to put into a Fortran program so that I can use them in a do loop
in a program that I am writing. I understand that the the math might be
complicated but I am willing to try it. A published reference that contains
this information would suffice.

"Doublee" wrote:

How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default coefficients of polynomial

http://lib.stat.cmu.edu/apstat/274
or
http://lib.stat.cmu.edu/apstat/274-90

give Fortran (or Fortran90) code for solving models that are linear in the
unkown parameters (such as polynomials).

Jerry

"Doublee" wrote:

What I meant to say is that I need the equations for the coefficients of the
polynomial to put into a Fortran program so that I can use them in a do loop
in a program that I am writing. I understand that the the math might be
complicated but I am willing to try it. A published reference that contains
this information would suffice.

"Doublee" wrote:

How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default coefficients of polynomial

From your new post to the old thread "Trend Line constants as Excel Cell
Values" I wonder if you were looking for a "quintic equation" similar to the
well known quadratic equation. Such a general solution for the roots of a
quintic does not exit
http://en.wikipedia.org/wiki/Quintic

Jerry

"Doublee" wrote:

What I meant to say is that I need the equations for the coefficients of the
polynomial to put into a Fortran program so that I can use them in a do loop
in a program that I am writing. I understand that the the math might be
complicated but I am willing to try it. A published reference that contains
this information would suffice.

"Doublee" wrote:

How do I calculate the coefficients of a 5th order polynomial? A reference
would suffice. The data consists of up to 50 equally spaced data points and
consists of real positive numbers. I am already aware of the equation as
displayed in Excel on the chart but the format is not useful to me because I
want to embed the calculations of the coefficients into an Excel 2007 cell.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Polynomial Treandline Coefficients Matt J Excel Worksheet Functions 6 November 7th 06 10:31 PM
how to get coefficients for Polynomial regression as for rgp() AZ Excel Worksheet Functions 1 January 26th 06 12:27 PM
using linest to generate 3rd order polynomial coefficients Incoherent Excel Worksheet Functions 4 September 14th 05 02:57 PM
Extracting Polynomial Coefficients Ken Hardman Excel Discussion (Misc queries) 6 September 7th 05 03:52 AM
higher order polynomial fit line x-coefficients barrfly Excel Discussion (Misc queries) 3 July 12th 05 09:07 AM


All times are GMT +1. The time now is 04:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"