Intermediate

克莱默法则计算器

通过输入增广系数矩阵,用克莱默法则求解二元或三元线性方程组。
One equation per line. Use 2 or 3 rows; each row has n coefficients and 1 constant.
Solution for x
2

Computed via Cramer’s rule (Dx / D)

x
2
y
1
Main determinant D
-7
Dx
-14
Dy
-7
Coefficient matrix — det D shows area-scaling (D ≠ 0 means unique solution)
Step by step
  1. 1

    Main determinant D

    2 × -3 − 1 × 1 = -7
  2. 2

    Numerator determinant Dx

    5 × -3 − 1 × -1 = -14
    Column 1 of the coefficient matrix is replaced with the constants.
  3. 3

    Solution x = Dx ÷ D

    -14 ÷ -7 = 2
结果仅为一般参考性的估算,并非专业建议——在依赖这些重要结果之前,请务必自行独立核实。 阅读完整免责声明.
快速解答

这个计算器是如何工作的?

克莱默法则使用行列式求解 2×2 或 3×3 线性方程组。输入每个方程的系数和常数。工具计算主行列式 D 及各 Dᵢ(用常数替换第 i 列),然后返回 xᵢ = Dᵢ / D。若 D = 0,则方程组无唯一解。

公式
xᵢ = det(Aᵢ) / det(A),其中 Aᵢ 用常数向量 b 替换 A 的第 i 列
How this is calculated

在增广矩阵框中每行输入一个方程。每行包含各变量的系数,后跟等号右边的常数。两行定义 2×2 方程组(x, y),三行定义 3×3 方程组(x, y, z)。数值可用空格或逗号分隔。

计算器将输入分为方阵系数矩阵 A 和常数向量 b。它计算主行列式 D = det(A)。对于每个变量 i,构造矩阵 Aᵢ(用 b 替换 A 的第 i 列),计算 Dᵢ = det(Aᵢ),然后得 xᵢ = Dᵢ / D。2×2 行列式用 ad − bc 计算;3×3 行列式用沿第一行的代数余子式展开。

克莱默法则仅在 D ≠ 0 时给出唯一解。若 D = 0,方程组要么不相容(无解)要么相关(无穷多解),工具将报告无唯一解。输入必须构成方形方程组:n 行中每行恰好需要 n + 1 个数。

常见问题

若 D = 0,克莱默法则无法使用,因为除以零是未定义的。方程组要么无解要么有无穷多解,应使用高斯消元法进一步分析。

每行写一个方程,格式为系数后跟常数。对于 2x + y = 5 和 x − 3y = −1,分别输入「2 1 5」和「1 -3 -1」。

本计算器处理 2×2 和 3×3 方程组。克莱默法则可推广到更大的方程组,但计算量很大,对于大型方程组,建议使用消元法或矩阵方法。

也称为

克莱姆法则
克莱姆法则计算器
克拉默法则
行列式解方程
解线性方程组
线性方程组求解
克莱姆
行列式法

APA

TG we-Calculate Editorial Team. (2026). 克莱默法则计算器 [Online calculator]. TG we-Calculate. https://we-calculate.com/zh/calculator/cramers-rule-calculator

Chicago

TG we-Calculate Editorial Team. "克莱默法则计算器." TG we-Calculate. 2026. https://we-calculate.com/zh/calculator/cramers-rule-calculator.

IEEE

TG we-Calculate Editorial Team, "克莱默法则计算器," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/zh/calculator/cramers-rule-calculator

BibTeX

@misc{wecalculate_cramers_rule_calculator, title = {克莱默法则计算器}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/zh/calculator/cramers-rule-calculator}}, year = {2026}, note = {TG we-Calculate} }

这个计算器对您有帮助吗?