Questions in category: Bug (Bug)
软件 >> Calculator >> Bug
<[1] [2] [3] [4] [5] >

21. [Bug] SowyaApp 在 clox 模式下, 设置计算模式后自动退出clox模式.

Posted by haifeng on 2023-10-27 11:21:25 last update 2024-11-26 15:49:17 | Answers (0) | 收藏


[Bug] SowyaApp 在 clox 模式下, 设置计算模式后自动退出clox模式.

:mode clox

setmode(1);  //执行完此语句后自动退出 clox 模式

 

Version: 0.579

 

---

已解决

22. [Bug] (-1/3)^(-3/2)

Posted by haifeng on 2023-10-01 22:19:27 last update 2023-10-01 22:20:22 | Answers (0) | 收藏


目前版本 v0.576, 计算 $(-\frac{1}{3})^{-\frac{3}{2}}$, 

>> (-1/3)^(-3/2)
in> (-1/3)^(-3/2)

out> 0.00000000-0.19245009i
------------------------

正确答案应该是 $-5.19615242i$.


 

\[
(-\frac{1}{3})^{-\frac{3}{2}}=\frac{1}{(-\frac{1}{3})^{\frac{3}{2}}}=
\]

23. [Bug] 分数模式下的BUG

Posted by haifeng on 2023-08-29 18:40:02 last update 2023-08-29 20:13:36 | Answers (0) | 收藏


>> :mode
Calculating mode: fraction

>> 7x^2+x-0.48
in> 7x^2+x-0.48

out> (-25*7*x^2+25*x-12)|25
------------------------


>>

 

>> +x^5-0.5
in> +x^5-0.5

out> (-2*x^5-1)|2
------------------------


>> +x^1.3-0.5
in> +x^1.3-0.5

out> (2*x^(13-10))|2*10)
------------------------

 

24. [Bug] fraction 模式下的问题

Posted by haifeng on 2023-08-27 11:41:53 last update 2023-08-27 22:40:45 | Answers (0) | 收藏


>> 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
------------------------


>>

不过没有化简.

25. [Bug] 分数模式下的错误

Posted by haifeng on 2023-07-06 15:55:19 last update 2023-07-07 20:43:22 | Answers (0) | 收藏


>> :mode fraction
Switch into fraction calculating mode.
e.g., 1/2+1/3 will return 5/6

>> printSeries((-1)^n*1/(2*n+1),n,0,10)
1,-1|3,^2|5,-^3|7,^4|9,-^5|11,^6|13,-^7|15,^8|17,-^9|19,^10|21,

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

检查分数运算下是否有BUG

 


numerical 模式下也有BUG.

>> (-1)^(3/2)
in> (-1)^(3/2)

out> 34716454.-1-1-1-1-1-1-1-1-1
------------------------

 


目前修复为

 

>>  printSeries((-1)^n*1/(2*n+1),n,0,10)
1,-1|3,1|5,-1|7,1|9,-1|11,1|13,-1|15,1|17,-1|19,1|21,

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

>> (-1)^(3/2)
in> (-1)^(3/2)

out> (-1)^(1|2)

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

26. [Bug] 关于模运算的Bug

Posted by haifeng on 2023-07-05 22:53:01 last update 2023-07-05 22:55:27 | Answers (0) | 收藏


>> x^340@341
in> x^340@341

out> 113
------------------------

 

>> x^340@123234
in> x^340@123234

out> x^340
------------------------

 

27. [Bug] 求解一元三次方程 solve(x^3+x^2-3x+6==0)

Posted by haifeng on 2023-06-05 09:28:02 last update 2023-06-05 10:53:51 | Answers (0) | 收藏


求解一元三次方程 solve(x^3+x^2-3x+6==0)

 

对于 Sowya.exe  version>0.551 且<=v0.554 的版本

>> solve(x^3+x^2-3x+6==0)

直接退出

 

目前在 v0.555 版本中已经修复. 

28. [Bug]

Posted by haifeng on 2023-05-28 17:10:17 last update 2023-05-28 17:10:17 | Answers (0) | 收藏


>> a=-1.2
----------------------------
 type: double
 name: a
value: -1.2
--------------------
>> a
in> -1.2

out> -1.2
------------------------


>> -a
in> --1.2
hint> ===*=== syntax error ===*===
         > It is not a valid expression.
         > type `:help` to view some rules.

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


>> -1*a
in> -1*-1.2
hint> ===*=== syntax error ===*===
         > It is not a valid expression.
         > type `:help` to view some rules.

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


>> -1*(a)
in> -1*(-1.2)

out> 1.2
------------------------


>> a*(-1)
in> -1.2*(-1)

out> 1.2
------------------------

29. [Bug] printSeries

Posted by haifeng on 2023-05-26 23:07:18 last update 2023-05-26 23:07:18 | Answers (0) | 收藏


>> printSeries((-1)^n*(n+1)/(3^n),n,0,10)
1,-0.66666667,0.33333333,-0.14814815,0.06172840,-0.02469136,0.00960219,-0.00365798,0.00137174,-0.00050805,0.00018629,

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

>> :mode fraction
Switch into fraction calculating mode.
e.g., 1/2+1/3 will return 5/6

>> printSeries((-1)^n*(n+1)/(3^n),n,0,10)
1,-2|3,3*^2|9,-4*^3|27,5*^4|81,-6*^5|243,7*^6|729,-8*^7|2187,9*^8|6561,-10*^9|19683,11*^10|59049,

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

 

30. [Bug] 复数运算

Posted by haifeng on 2023-05-03 14:18:40 last update 2023-05-03 17:30:28 | Answers (0) | 收藏


>> (1+2i)/(3-4i)+(3i-2)
in> (1+2i)/(3-4i)+(3i-2)

out> (3*-1)|3*+(8*+2)|8*i
------------------------

 

>> (1+2i)/(3-4i)+2

会导致退出.

 

>> (1+2i)+(3-4i)-2+2i
in> (1+2i)+(3-4i)-2+2i

out> 2-4i
------------------------

正确答案应该是 2.  这里遇到 -, 将后面的 2+2i 直接作为操作数. 即执行的是 (1+2i)+(3-4i)-(2+2i)

 

 

v0.553

 


 

>> (1+2i)/(3-4i)
in> (1+2i)/(3-4i)

out> -1|5+2|5i
------------------------


>> (1+2i)/(3-4i)+1|5
in> (1+2i)/(3-4i)+1|5

out> 0+2|5i
------------------------

这里不能输入 (1+2i)/(3-4i)+1/5  因为 / 会被认为是复数之间的运算符.

>> (1+2i)/(3-4i)+(1+2i)*(3-4i)
in> (1+2i)/(3-4i)+(1+2i)*(3-4i)

out> 54|5+12|5i
------------------------

 

 

>> (a+bi)-(a+bi)
in> (a+bi)-(a+bi)

out> (0+a-(a+0)+0)+(0+b-(b+0)+0)i
------------------------

未化简

 

 

>> (1)/(5)i+2+3
in> (1)/(5)i+2+3

out> 25|26-5|26i
------------------------

在 numerical 模式下,

>> (1)/(5)i+2+3
in> (1)/(5)i+2+3

out> 5/i+5
------------------------

 

<[1] [2] [3] [4] [5] >