Question: I've done it in excel. Need help with doing this in Matlab if possible. The quadratic equation 49) normally has two roots, though the roots
The quadratic equation 49) normally has two roots, though the roots depend on the values assigned to the coemc ents a, b, and c If b2> 4ac, then the roots are given by the well-known quadratic formula -6-400 2a (4.10) 2a If D2c4ac, the roots are complex, given by x2 -I (4.11) 2a 2a 2a where represents the imaginary number If b2-4ac, there is one repeated root, given by 4.12) Finally, if a 0, there only one root, given by 4.13) Create an Excel spreadsheet that will determine the roots of a quadratic equation in terms of the coefficients a, b, and c. In the case of complex roots, use the TEXT library function to convert the maginary number to a string (ie, a label), and then combine the resulting string with the letter using the string operator (&) Enter the following sets of coefficients in your worksheet, and determine the roots corresponding to each set (a) a = 2, b = 4, c = 1 (b) a = 4, b#2, c 3 (c) a-2, b 4,c-2 (0) a 0, b = 3, c-2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
