powered by
Compute the roots of a quadratic equation
quad_roots(a, b, c)
vector with the two roots
coefficient of the quadratic term
coefficient of the linear term
coefficient of the constant term
quad_roots computes the roots of a quadratic equation of the form \(ax^2 + bx + c = 0\).
quad_roots
quad_roots(1, -8, 12)
Run the code above in your browser using DataLab