Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use python Design a function called print_real_roots that takes three floating point values representing the values of a, b and c in a quadratic equation

image text in transcribeduse python

Design a function called print_real_roots that takes three floating point values representing the values of a, b and c in a quadratic equation and calculates the real roots of that equation. The function should print the roots formatted to 3 decimal places separated by a comma. Recall, the real roots of the quadratic equation ax + bx +C =0 are given by the formula: -b + Vb2 - 4ac 2a assuming that the discriminant is 0 or more (ie. b - 4ac 20). x = Example: >>> print_real_roots (2, 3, -1) 0.281 , -1.781 In the case when b - 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

More Books

Students also viewed these Databases questions

Question

=+ Have they changed the way employers view IP?

Answered: 1 week ago