✏️ Quadratic Equation Solver

Solve ax² + bx + c = 0 and return real or complex roots along with the discriminant for algebra and parabola analysis.

📐 計算公式 / 原理
一元二次求根(本頁程式碼口徑):Δ=b²−4ac;Δ>10⁻¹² 時 x₁,₂=(−b±√Δ)÷(2a)(附精確根式化簡);|Δ|≤10⁻¹² 判重根 x=−b÷(2a);Δ<−10⁻¹² 判共軛復根 x=−b÷(2a)±√(−Δ)÷(2a)·i;a=0 退化為一次方程 x=−c÷b(b=0 且 c=0 判恆成立、c≠0 判無解)。校驗:係數任一非數值時清空輸出返回;10⁻¹² 閾值用於吸收浮點誤差。判據:按判別式分「兩不等實根/重根/共軛復根/一次方程/非方程」類別徽標,並附分步推導。
二次方程求根公式,判別式 Δ = b²−4ac:Δ>0 兩實根、Δ=0 重根、Δ<0 一對共軛復根;a=0 時退化為一次方程。
x2 + x + = 0
--

📐 求根公式

x = −b ± √(b² − 4ac) 2a
判別式 Δ = b² − 4ac:
• Δ > 0:兩個不相等的實數根
• Δ = 0:兩個相等的實數根(重根)
• Δ < 0:兩個共軛複數根

📚 深度解析:二次方程求解器

💡 常見使用場景

  • ax²+bx+c=0 求根。
  • 拋物線零點與工程最佳化問題的求根計算。
求解
x²-5x+6=0:Δ=25-24=1,x=(5±1)/2 → x=2 或 3。

❓ 常見問題(FAQ)

判別式 Δ<0?
無實根,有共軛復根。
韋達定理是什麼?
兩根之和 x₁+x₂=−b/a,兩根之積 x₁·x₂=c/a。

Formula & Standard References

Item Formula / Note Source / Standard
Quadratic root x = (−b ± √(b²−4ac)) / (2a) Quadratic formula
Discriminant Δ = b² − 4ac Fundamental theorem of algebra
⚠️ 使用說明與注意事項