Question: part b In this problem we shall consider the effect of computer arithmetic in the evaluation of the quadratic formula 1,2 for the roots of

part b

part b In this problem we shall consider the effect of computerarithmetic in the evaluation of the quadratic formula 1,2 for the roots

In this problem we shall consider the effect of computer arithmetic in the evaluation of the quadratic formula 1,2 for the roots of p(x)-ax2 + bx + c. (a). Write a Matlab function, call it quadroots, that takes a, b, c as input and returns the two roots as output. The function may start like this: function [ri, r2] quadroots (a,b,c) % input: a, b, c: coefficients for the polynomial ax^2+bx+c-o. % output: r1, r2: The two roots for the polynomial

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!