Question: Translate this question to Matlab code please X *(1/x) == 1 The classic quadratic formula says that the two roots of the quadratic equation ax^2
X *(1/x) == 1 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
