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

1. [BUG] Calculator 计算一元不定方程时的BUG

Posted by haifeng on 2022-12-07 10:04:57 last update 2022-12-07 10:04:57 | Answers (0) | 收藏


Solve the indefinite equation :
5*X1+8*X2 = 7

u1=7-2*u0
---------------
X1 = -1*u1+u0
X2 = -1*u0+u1
X1 = -1*X2+u0

------------------------

2. [Bug] Calculator 矩阵输入 Bug

Posted by haifeng on 2022-09-30 20:46:35 last update 2022-09-30 23:23:08 | Answers (0) | 收藏


B=[3 21 27/4;
1 -1 0;
-8 -2 37/4]

输入该矩阵, 出现 Bug.


>> B=[3 21 27/4;
B=[3 21 27/4;
1 -1 0;
-8 -2 37/4]
input> [3,21,27/4;1-1,0;-8,-2,37/4]
det(B)=0
----------------------------
 type: matrix
 name: B
value:
3       21      27/4
1-1     0       0
-8      -2      37/4

determinant: 0
--------------------


已经修复

>> B=[3 21 27/4;
B=[3 21 27/4;
1 -1 0;
-8 -2 37/4]
input> [3,21,27/4;1,-1,0;-8,-2,37/4]
det(B)=-289.50
----------------------------
 type: matrix
 name: B
value:
3       21      27/4
1       -1      0
-8      -2      37/4

determinant: -289.50
--------------------

 

3. [Bug] calculator.exe 输入矩阵时的问题

Posted by haifeng on 2022-09-05 07:59:25 last update 2022-09-15 08:23:22 | Answers (0) | 收藏


当在 [ 后有空格或者; 后有空格等情况, parser 自动插入了多余的逗号.

>> A=[ 1 2; 3 4 ]
input> [,1,2;,3,4,],;

 


经过不断完善, 现在的输入规则是这样的.

calculator.exe

>> A=[ 1,2 3; 4 5, 7
A=[ 1,2 3; 4 5, 7
; 2 3]
input> [1,2,3;4,5,7;2,3]
det(A)=13
----------------------------
 type: matrix
 name: A
value:
1       2       3
4       5       7
2       3       0

determinant: 13
--------------------


CalculatorApp.exe

输入

A=[ 1,2 3; 4 5, 7
; 2 3]

输出

[var] A
1 2 3 
4 5 7 
2 3 0 
input> [1,2,3;4,5,7;2,3]
det(A)=13
--------------------
>> 


:version 

0.518