Professional Documents
Culture Documents
MP1
MP1
Valbuena
Machine Problem 1
ES 204 WZZQ
A. Program Input
B. Program Output
- Solving for the first and second root (r1 and r2):
- The values of bn-1 and bn become zeroes after 7th iteration. The roots can now
be solved using quadratic formula.
- Solving for the third and fourth root (r3 and r4):
2. x9 + 2x8 -7x7 + 11x6 + 41x5 – 183x4 + 231x3 + 21x2 – 265x + 130 = 0
A. Program Input
B. Program Output
- Solving for the first and second root (r1 and r2):
- The values of bn-1 and bn become zeroes after 24th iteration. The roots can now
be solved using quadratic formula.
- Solving for the third and fourth root (r3 and r4):
- The values of bn-1 and bn become zeroes after 7th iteration. The roots can now
be solved using quadratic formula.
- Solving for the fifth and sixth root (r5 and r6):
- The values of bn-1 and bn become zeroes after 14th iteration. The roots can now
be solved using quadratic formula.
- Solving for the seventh, eighth and ninth root (r7, r8 and r9):
- The values of bn-1 and bn become zeroes after 8th iteration. The roots can now
be solved using quadratic formula.
Appendix: Microsoft VBA Program Code