Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- a, b, c = input().split()
- a, b, c = float(a), float(b), float(c)
- if b**2 >= 4*a*c :
- y = math.sqrt(b**2 - 4*a*c)
- R1 = (-b + y)/ (2* a)
- R2 = (-b - y)/ (2* a)
- print("R1 = " + "{:.5f}".format(R1))
- print("R2 = " + "{:.5f}".format(R2))
- else:
- print("Impossivel calcular")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement