Quadratic Discriminant Calculator
Compute the discriminant of a quadratic equation and the nature of its roots.
📐 计算公式
一元二次判别式(本页代码口径):Δ=b²−4ac;顶点横坐标=−b÷(2a)(a≠0 时输出)。校验:三项必填且为有效数值(0 合法,a=0 时按非二次方程提示)。判据:a=0 判「不是二次方程」;Δ 恰为 0 判两个相等实根;否则用随系数尺度变化的容差 tol=max((b²+|4ac|)×10⁻¹², Number.MIN_VALUE)——|Δ|≤tol 时标「Δ 在数值精度内接近 0,可能为重根,需高精度核验」(不给出确定结论),Δ>tol 两个不等实根,Δ<−tol 无实根。判别式按量级显示:常规两位小数,极小/极大用 4 位科学计数,避免 1e−14 被显示成 0.00 后误判。
输入二次项系数 a、b、c,求判别式。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Discriminant | Delta = b^2 - 4ac for the equation ax^2 + bx + c = 0 | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Number of real roots | Delta > 0: two distinct real roots; Delta = 0: a repeated real root; Delta < 0: no real roots | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Quadratic formula | x = ( -b ± sqrt(Delta) ) / (2a) | ISO 80000-2:2019, Quantities and units - Part 2: Mathematics |
| Viete formulas | x1 + x2 = -b/a; x1 · x2 = c/a | Viete F. (1591), In artem analyticem isagoge |
📌 计算说明
- Δ>0 两实根,Δ=0 重根,Δ<0 复根。
- (−3)²−8 → 1。