Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
sympy expand solution in 3rd party category for Write Quadratic Equation by Phil15
from sympy.abc import x
def quadr_equation(data: list[int]) -> str:
a, x1, x2 = data if len(data) == 3 else data + data[~0:]
p = a * (x - x1) * (x - x2)
return f'{p.expand()} = 0'
Aug. 21, 2022
Comments: