Page 1 of 1

Problem Statement. The roots of a quadratic equation ax² + bx + c = 0 can be determined with the quadratic formula, -b ±

Posted: Sun Jul 03, 2022 11:23 am
by answerhappygod
Problem Statement The Roots Of A Quadratic Equation Ax Bx C 0 Can Be Determined With The Quadratic Formula B 1
Problem Statement The Roots Of A Quadratic Equation Ax Bx C 0 Can Be Determined With The Quadratic Formula B 1 (24.3 KiB) Viewed 13 times
Problem Statement The Roots Of A Quadratic Equation Ax Bx C 0 Can Be Determined With The Quadratic Formula B 2
Problem Statement The Roots Of A Quadratic Equation Ax Bx C 0 Can Be Determined With The Quadratic Formula B 2 (43.76 KiB) Viewed 13 times
Problem Statement. The roots of a quadratic equation ax² + bx + c = 0 can be determined with the quadratic formula, -b ± √b² - 4ac| 2a X1 X2 =
import numpy as np a eval(input ("Please input a:")) beval(input ("Please input b: ")) c = eval(input("Please input c:")) r=0 rl = 0 x2=0 d = b**2- 4*a*c if a == 0: if b == 0: print("There is no solution to this equation!") elif b 10: r = -b/c print("The solution r \=", r) elif a = 0: if d >= 0: rl-(-b+np.sqrt(d))/(2*a) r2=(-b-np.sqrt(d))/(2*a) print("The solutions rl and r2 are:", rl, "and", r2, ", respectively.") elif d < 0: print("The equation does not have real solutions.")