Q5 Modify Function Quad Demonstrated Class Name Quad2 Notes 8 Return Complex Roots Discrim Q37211275

Please use R language to solve.
Q5. Modify the function quad) demonstrated in class and name it quad2 (Notes 8) so that it will return complex roots if the dQ5. Modify the function quad) demonstrated in class and name it quad2 (Notes 8) so that it will return complex roots if the discriminant turns out to be negative. The function call is quad2(a, b,c). Use your function to solve (i) 5a23 0 and (i) 2c2 +5x + 3 0. Hint: Use the built-in R function complex() Show transcribed image text Q5. Modify the function quad) demonstrated in class

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.