Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quadratic Equation solving with Solver 1

Status
Not open for further replies.

newage

Instructor
Sep 26, 2002
2
GB
Help me please I need to solve equations using Excel. I can graph them but I have been told that Solver is a much better option, the snap is that I don't know how to use Solver what do know is that in could interpret the roots easier if they were numerical.
 
Newage:
All I know is this:
Example: you want to solve this equation X^2-X-12=0
Use a cell as a variable e.g. A1.
Use another cell, say B1 as the "target" and put the equation in it. Put =A1^2-A1-12 in B1
before you use the solver the result will, of course, reflect whatever happened to be in A1. If A1 is still null or contains a zero then the result in B1 is -12.
Now go to Tools.. Solver. A dialog will appear
Choose B1 as your target.
Choose A1 as your "By changing cells:"
Where it says "Equal to" set value to 0
Click Solve button.
Your B1 should now contain -4.63155E-09 which is small enough (depending on the precision you choose).
Your A1 now contains the ROOT you are looking for, in this case 4.000000002 ( again not exact but close enough).
I tried this and got both roots (4 and -3) by initiating the value of A1 differently. I use 0 and got -3 and then used +1 and got +4.

I am not sure about complex roots, I will try to play with it later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top