ioplex.blogg.se

Excel solver function for finding roots
Excel solver function for finding roots











excel solver function for finding roots

Here is one that you could easily implement:įunction Quadratic(a As Double, b As Double, _ I mentioned earlier that you could build your own user-defined function to derive your solutions to a quadratic equation. If you prefer to work with the Goal Seek tool, however, you may find this web page helpful: My feeling is that if you can use a formula to derive a solution, it seems to me that the whole need for doing the iterative work at which the Goal Seek tool is so adept is removed. I should note that I've also seen people use Excel's Goal Seek tool to solve a quadratic equation, but for my money, the formulas described above work just fine. If you want to adjust your formulas to deal with imaginary numbers, you might find this short discussion helpful: At this point things can get sticky in a hurry, and mere mortals run into the real possibility of their heads exploding. If this is not true, there are still answers, but you start getting into imaginary numbers. These formulas will work for any value where (B1^2)>(4*A1*C1).

excel solver function for finding roots excel solver function for finding roots

You can, at this point, change the values in A1, B1, and C1 and end up with the answers you need. Assuming that your values for a, b, and c are in cells A1, B1, and C1, you could use the following formulas: This is easy enough to place into a worksheet. There are always two possible solutions for x, which means that there are two quadratic formulas that derive from the quadratic equation: In the equation, values a, b, and c are constants and you need to solve for x. This is the general form of a quadratic equation:

excel solver function for finding roots

You can, however, use a couple of formulas to solve a quadratic equation, or you can develop your own user-defined function. The short answer is that there is no such worksheet function built into the program. Clyde wonders if there is a function in Excel that solves quadratic equations.













Excel solver function for finding roots