Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could someone help explain what exactly they'd like us to do? Thanks Consider the following 4 equivalent equations for the root of a quadratic function

Could someone help explain what exactly they'd like us to do? Thanks

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago