方程计算器 Equation Solver
输入系数,快速求解一次方程或二次方程的根,并给出判别式、根的关系等关键信息。
Enter coefficients to solve linear or quadratic equations, including discriminant and key properties of roots.
1. 输入参数 · Equation Parameters
3. 使用说明 · Notes
-
一次方程(Linear):ax + b = 0
中文:当 a ≠ 0 时,唯一解为 x = -b / a。若 a = 0:
• b = 0 → 任意 x 都成立(无穷多解);• b ≠ 0 → 无解。
English:When a ≠ 0, the unique solution is x = -b / a. If a = 0:
• b = 0 → infinitely many solutions; • b ≠ 0 → no solution. -
二次方程(Quadratic):ax² + bx + c = 0(a ≠ 0)
中文:先计算判别式 Δ = b² – 4ac:
• Δ > 0 → 两个不同实根;• Δ = 0 → 两个相同实根(重根);• Δ < 0 → 无实数根(可输出复数根)。
English:Compute discriminant Δ = b² – 4ac:
• Δ > 0 → two distinct real roots; • Δ = 0 → one real double root; • Δ < 0 → no real roots (complex roots possible). -
复数解显示(Complex Roots)
中文:当 Δ < 0 且你开启“允许显示复数解”时,工具会给出:
x = (-b / (2a)) ± (√(-Δ) / (2a)) i。这里 i² = -1。
English:If Δ < 0 and complex roots are enabled, the tool outputs:
x = (-b / (2a)) ± (√(-Δ) / (2a)) i, where i² = -1. -
根的关系(Vieta’s Formulas)
中文:对二次方程(a ≠ 0):两根之和 x₁ + x₂ = -b/a;两根之积 x₁·x₂ = c/a。
这些关系适合快速验算:把求出的根代回去不方便时,用“和/积”做交叉验证。
English:For quadratic (a ≠ 0): sum x₁ + x₂ = -b/a; product x₁·x₂ = c/a.
Useful for quick sanity checks when substitution is tedious. -
顶点与标准式(Vertex & Completed Square)
中文:若勾选“显示顶点”,工具会给出抛物线顶点:x₀ = -b/(2a),y₀ = f(x₀)。
同时给出配方后的标准式:a(x – x₀)² + y₀,便于判断开口方向与最值。
English:With “Show vertex” enabled, we output vertex x₀ = -b/(2a), y₀ = f(x₀).
Completed-square form a(x – x₀)² + y₀ helps you see opening direction and extrema quickly. -
输入小技巧(Input Tips)
中文:建议先用小整数测试(如 1、-3、2),确认工具输出符合预期,再输入更复杂的小数。
若你遇到“看起来不对”的情况,通常是:a 太接近 0、系数数量级差异太大、或小数精度导致的显示误差。
English:Start with small integers to validate behavior, then move to decimals.
If results look odd, it’s often because a is extremely close to 0, coefficient scales differ wildly, or rounding affects display. -
免责声明(Disclaimer)
中文:本工具为数学学习与快速核对用途,采用常见解析公式计算并做了格式化输出。结果仅供参考。
English:This tool is for learning and quick checking. It uses standard closed-form formulas with formatted output. Results are for reference only.
小提示:如果你后续要加“批量求解(粘贴多行系数)”、或“支持三次/四次方程(数值法)”,
这个页面结构也能直接扩展。
Tip: This layout can be extended to batch solving (paste multiple lines) or higher-degree equations (numerical methods) later.
