The classic quadratic formula says that the two roots of the quadratic equation ax^2 + bx + c = 0 are x_1 x_2 = -b plusminus squareroot b^2 - 4ac/2a. Use this formula in Matlab to compute both roots...

The classic quadratic formula says that the two roots of the quadratic equation ax^2 + bx + c = 0 are x_1 x_2 = -b plusminus squareroot b^2 - 4ac/2a. Use this formula in Matlab to compute both roots for a = 1, b = -100000000, c=1. Compare your computed results with roots([a b c]) What happens if you try to compute the roots by hand or with a hand calculator? You should find that the classic formula is good for computing one root, but not the other. So use it to compute one root accurately and then use the fact that x_1 x_2 = c/a to compute the other.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here