Question: Question 1) Consider the following 4 equivalent equations for the root of a quadratic function in the picture below. Write a python function that takes

 Question 1) Consider the following 4 equivalent equations for the root

Question 1) Consider the following 4 equivalent equations for the root of a quadratic function in the picture below. Write a python function that takes 3 parameters (a,b,c) and finds the 4 sets of roots using all 4 equations. Find function then evaluates the function using the 4 sets of solutions and returns the ones with the minimum floating point error 2.1. It is well known that a quadratic equation ax? +bx+c=0 has two roots given by -b + b2 - 4ac 2a There are, however, other mathematically correct ways of expressing the quadratic equation. For example, it could be written as -2c b02 - 4ac or, indeed, as either -6 (1 + (1 - 4ac/b2). 2a or -2c b(1 + (1 - 4ac/62) (you can derive these by noting that 4ac (6 + b2 - 4ac)(b - 62 - 4ac). Question 1) Consider the following 4 equivalent equations for the root of a quadratic function in the picture below. Write a python function that takes 3 parameters (a,b,c) and finds the 4 sets of roots using all 4 equations. Find function then evaluates the function using the 4 sets of solutions and returns the ones with the minimum floating point error 2.1. It is well known that a quadratic equation ax? +bx+c=0 has two roots given by -b + b2 - 4ac 2a There are, however, other mathematically correct ways of expressing the quadratic equation. For example, it could be written as -2c b02 - 4ac or, indeed, as either -6 (1 + (1 - 4ac/b2). 2a or -2c b(1 + (1 - 4ac/62) (you can derive these by noting that 4ac (6 + b2 - 4ac)(b - 62 - 4ac)

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!