问题

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

[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