Skip to main content
1-Visitor
July 11, 2012
Solved

Getting coefficients of a quadratic equation based on three points

  • July 11, 2012
  • 8 replies
  • 5770 views

Greetings, can someone provide a hint?

Untitled.png

Best answer by StuartBruff

Provide some guess values for a, b and c.

Stuart

8 replies

23-Emerald V
July 11, 2012

Provide some guess values for a, b and c.

Stuart

1-Visitor
July 11, 2012

Thanks Stuart, that looks like it worked.

But then the question follows: why does MathCad expect you to guess values for variables that we trying to solve for? Is that just for the sake of declaration? If that is the case, then it seems awkward, especially, since these values are arbitrary.

23-Emerald V
July 11, 2012

David Aranovsky wrote:

Thanks Stuart, that looks like it worked.

Good. I checked it in Prime 1 after I posted and it worked as well.

But then the question follows: why does MathCad expect you to guess values for variables that we trying to solve for? Is that just for the sake of declaration? If that is the case, then it seems awkward, especially, since these values are arbitrary.

As Fred says, the numerical solvers generally require a starting point (guess values) - the solvers are fairly general and a number of problems have solutions that are dependent on the initial values.

Local minima and maxima are a good example - starting on side of the 'hill' or the other may take you to completely different minima. I posted a worksheet on the Hooke-Jeeves search algorithm here: http://communities.ptc.com/message/185455#185455 . It contains an example near the bottom of what happens when you specify different initial values.

Stuart

23-Emerald I
July 11, 2012

Generally Mathcad wants a starting guess at the answer so it can launch its' numeric solver. You put x and y in for guess values, try assigning guesses for a, b, and c.

Attached is your problem solved in 14/15, I don't know if it will convert to Prime.

1-Visitor
July 11, 2012

Thanks Fred!

19-Tanzanite
July 12, 2012

This is actually a set of linear equations in the unknowns, so here are a couple of ways of solving them without the need for initial guesses:

lineareqns.PNG

Alan