Simple Quadratic Equation Calculation with Python

preview_player
Показать описание
---------------------------------------
In a quadratic equation of the form ax2 + bx + c = 0, the quadratic formula will tell us the values of x that solve the equation.

It's possible that there will be either 2, 1, or 0 real solutions. It all depends on the value inside the square root (known as the "discriminant"). The discriminant is b^2 - 4ac.

-If the discriminant is positive there are two real solutions.
-If the discriminant is zero there is one real solution.
-If the discriminant is negative there are no real solutions.

Write a Python program that asks the user for a, b, and c for the quadratic equation, and then computes the discriminant along with how many solutions and what those solutions are.
-------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Рекомендации по теме
join shbcf.ru