Results 1 to 4 of 4

Thread: Fitting a polynomial to a graph.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    The Sea of Tranquility
    Posts
    252

    Fitting a polynomial to a graph.

    If you have a set of results on a graph that appears to have a straight line of best fit you can use regression to obtain its algebraic equation.

    But how can you do this if your results show a slight curve? How do you map a polynomial onto a graph using your results?

    Thanks,

    Rich
    Rich

    A)bort, R)etry, I)nfluence with large hammer.
    Please take a moment to rate useful posts.

  2. #2
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: Fitting a polynomial to a graph.

    Using least-squares fitting.

    Do a search on these forums if you want code. It must have come up many times before.

    zaza
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

  3. #3
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: Fitting a polynomial to a graph.

    Quote Originally Posted by zaza
    Do a search on these forums if you want code. It must have come up many times before.
    zaza
    Here's a very recent forum discussion:

    http://www.vbforums.com/showthread.php?t=452604

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    The Sea of Tranquility
    Posts
    252

    Re: Fitting a polynomial to a graph.

    Thanks for the pointers guys, I used this post here POST

    Managed to get the same answer that MS Excel provided which is a good sign .
    Rich

    A)bort, R)etry, I)nfluence with large hammer.
    Please take a moment to rate useful posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width