+ Reply to Thread
Results 1 to 11 of 11

Polynomial function

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Polynomial function

    Hi guys,

    Someone please help.

    I have plotted a graph which compares the miles done with the petrol used.

    I'm trying find a formula which allows me to apply the petrol and would give me the miles covered.

    From excel I have applied the tread line of polynomial and obtained the following formula...

    y = 1E-06x5 - 0.0002x4 + 0.0161x3 - 0.4893x2 + 7.5295x - 20.87

    Rē = 0.9989

    When is it applied to excel with the value of petrol it does not give me the miles.
    I'm working out the formula in a incorrect manner??

    I have attached the excel file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Polynomial function Excel

    The trendline formula you have computes petrol given miles.

    If you want to compute miles given petrol, reverse the plot.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function Excel

    Thanks

    How to I put the formula into a cell?

    y = 1E-06x5 - 0.0002x4 + 0.0161x3 - 0.4893x2 + 7.5295x - 20.87
    Rē = 0.9989


    What do I replace the "E" with?

    From the file I would like to fine the miles for petrol 25.1883984 the formula should return the value 15... how would I go by putting it into excel?

    Thanks

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Polynomial function Excel

    Select G2:L2. In the formula bar, paste =LINEST(D6:D15, E6:E15^{1,2,3,4,5}), but DON"tT press Enter. Instead, press and hold the Ctrl and Shift keys, then press Enter. What appears are the polynomial coefficients in descending order:

    Please Login or Register  to view this content.


    Then in F2 and copy down, =SERIESSUM(E7,5,-1,$G$2:$K$2) + $L$2
    Last edited by shg; 02-09-2010 at 04:00 PM.

  5. #5
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function Excel

    I can't seems to manage to get the code which you wrote in grey.

    After I paste the formula and hold down ctrl and alt then press enter while holding nothing happeds.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Polynomial function

    Sorry, Ctrl + Shift keys, then Enter. Corrected in prior post.

  7. #7
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function

    Thanks it worked.... I had to selected cells G2:M2.

    Could you please explain on how you got the formula for:

    "=LINEST(D6:D15, E6:E15^{1,2,3,4,5})" Is this based from the formula "y = 1E-06x5 - 0.0002x4 + 0.0161x3 - 0.4893x2 + 7.5295x - 20.87
    Rē = 0.9989". If it is could you please explain how?

    and

    "=SERIESSUM(E7,5,-1,$G$2:$K$2) + $L$2"

    i.e. how did you know what data to select (both formulas).

    Sorry for the questions, but I really appreciate your help.

    Thank You!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Polynomial function

    LinEst does linear regression. The ^{1,2,3,4,5} calculates powers of x to use as the basis functions. Both LinEst and SeriesSum are well explained in Help; look at that and post back if you have other questions.

  9. #9
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function

    Thanks will have a look...

    Also in your previous post dated "02-09-2010, 07:44 PM " when I perform in my excel sheet I don't get the powers displayed in row 1?

    Does this equation "y = 1E-06x5 - 0.0002x4 + 0.0161x3 - 0.4893x2 + 7.5295x - 20.87
    Rē = 0.9989" have any relation to the Linest or/and SeriesSum function used above in excel?

    Thanks
    Last edited by mcwee72; 02-12-2010 at 06:49 AM.

  10. #10
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function

    I've had a look at the help in excel...

    But I cannot seems to find on how the calculation is done, I need to implement this in a programming language.

    Anybody know where I could find a step by step walk through?

    Thank You!

  11. #11
    Registered User
    Join Date
    02-09-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Polynomial function

    anyone?

    Please

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1