[Bug] fraction 模式下的问题
>> k+5|2
in> k+5|2
out> 5
------------------------
>> 5|2+a
in> 5|2+a
out> (0+2*a)|2
------------------------
已修复部分. Calculator.cpp 中调用 A.ChangeInfix_InModeFraction();
temp = A.ChangeInfix_InModeFraction();
//temp = A.ChangeSymbolicInfix_InModeFraction();//仍有BUG
//temp = A.ChangeSymbolicInfix();
但还是有问题
>> k+(-1|2)*(-5)
in> k+(-1|2)*(-5)
out> (2*k+5)|2
------------------------
>> (-1|2)*(-5)+k
in> (-1|2)*(-5)+k
out> 5|2
------------------------
>> K+5|2
in> K+5|2
out> (2*K+5)|2
------------------------
>> 5|2+k
in> 5|2+k
out>
------------------------
>> (2*k+5)|2-1|8*10
in> (2*k+5)|2-1|8*10
out> -5|4
------------------------
现在基本上解决.
>> :version
Version: 0.573
>> (2*k+5)|2-1|8*10
in> (2*k+5)|2-1|8*10
out> 2*k/2+1.250
------------------------
>> :mode fraction
Switch into fraction calculating mode.
e.g., 1/2+1/3 will return 5/6
>> (2*k+5)|2-1|8*10
in> (2*k+5)|2-1|8*10
out> (4*2*k+20-10)|8
------------------------
>>
不过没有化简.