Method returns the roots (or zeros) of the univariate quadratic function null
,
Math.qfZeros(a,b,c)
We can get the intersection points of a parabola and horizontal line
Math.qfZeros(a,b,c,y)
const a = -2;
const b = 3;
const c = 4;
Math.qfZeros(a,b,c)
// [-0.851, 2.351]
Math.qfZeros(a,b,c,4)
// [0, 1.5]
Math.qfZeros(a,b,c,-4)
// [-1.386, 2.886]