Results 1 to 4 of 4

Thread: Create a quadratic from two values?

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Question Create a quadratic from two values?

    When solving an equation in the form



    using:



    we get two answers. Agreed?

    Now, what I want is a way of creating an equation in the form


    from two values of x

    eg x=14.468 , x=52.583

    Any suggestions?
    Another light-hearted post from Guru

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

    Re: Create a quadratic from two values?

    You have 2 equations in 3 unknowns, so there are potentially infinitely many solutions. If you are willing to choose c arbitrarily, then you can find a solution by straightforward substitution because the problem reduces to 2 equations in 2 unknowns.

    a = c/(x1*x2)

    b = -c/x2 - a*x2 = -c(1/x2 + 1/x1)

    Last edited by VBAhack; Mar 15th, 2007 at 01:26 PM.

  3. #3
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: Create a quadratic from two values?

    eg x=14.468, x=52.583
    (x - 14.468)(x - 52.583) = 0
    x2 - 67.051*x + 760.770844 = 0

    If you want 'a' to be anything other than 1, simply multiply through by whatever value you want 'a' to be.

  4. #4

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Re: Create a quadratic from two values?



    That's perfect!

    Thanks
    Another light-hearted post from Guru

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