问题

软件 >> Calculator >> Bug
Questions in category: Bug (Bug).

[BUG] 计算带符号的行列式时出现错误

Posted by haifeng on 2024-05-22 17:48:14 last update 2024-05-23 22:37:04 | Answers (0) | 收藏


>> :version

Version: 0.601

>> A=[x-3 -5;
A=[x-3 -5;
5 x-3]
A=[x-3 -5;
input> [x-3,-5;5,x-3]
--------------------

x-3     -5
5       x-3

--------------------
>> det(A)
x*x+22*x-3*x-66


分析原因

det(A)= x-3 * x-3-(-5)*5 =x-3*x+22

这里计算的是 (x-3)*(x+22)=x*x+22*x-3*x-66


问题在于 fr_multiplication() and fr_subtraction() 两个函数.

现已修复.