PY
py
1
2
3
4
5
6
7
8
9
10
from sympy import symbols, Eq, solve
a = int(input())
b = int(input())
c = int(input())
d = int(input())
x = symbols('x')
eq = Eq(a * x*x*x + b * x*x + c * x + d)
sol_dict = solve(eq)
print(f'x = {sol_dict}')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run