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

1. [BUG] 处理多项式时的若干问题

Posted by haifeng on 2024-04-23 10:56:08 last update 2024-04-23 11:32:54 | Answers (0) | 收藏


>> :mode polyn
Switch into polynomial mode.

>> (1.2x)^(1+2)
in> (1.2x)^(1+2)

out> 1.2x^3|1
------------------------

 

目前改进

>> :mode polyn
Switch into polynomial mode.

>> 1.2x^1.2-x^1
in> 1.2x^1.2-x^1

out> +1.2x^1.2-1x
------------------------


>> 1.2x^1.2-x^1.2
in> 1.2x^1.2-x^1.2

out> +0.2x^1.2
------------------------

2. [BUG]2024-02-24

Posted by haifeng on 2024-02-24 20:17:04 last update 2024-02-25 12:53:00 | Answers (0) | 收藏


Sowya, version 0.59

>> 2+1/(1+1/(0+1/(-1)))

返回 Inf+2,  应返回 Inf


 

>> 106|5x^3+21|2x^2-101|23x-207|20
in> 106|5x^3+21|2x^2-101|23x-207|20

out> 106|5x^3+21|2x^2-87826087|20000000x^1-207|20
------------------------

 

3. [Bug]2024-2-10

Posted by haifeng on 2024-02-10 20:58:44 last update 2024-02-10 21:46:19 | Answers (0) | 收藏


SowyaApp.exe  

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

version: v0.589

 

A=[1,1/2;-3.2,4]

[var] A
1 1/2
-3.2 4
input> [1,1/2;-3.2,4]
--------------------
 
rank(A)
2
 
in> A.sort()
-3.2 1
4 1/2

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

in> A.rank()

1

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

r1*(-1|3.2) ==>
 
16|16.0 -1|3.2
4 1/2
 
------------
r2+r1*(-4) ==>
 
16|16.0 -1|3.2
0.0|16.0 11.2|6.4
 
------------
 
The linearly independent column vectors are:
c1.
1
 
 
已经解决.  v0.590

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

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


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

:mode clox

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

 

 

Version: 0.579

5. [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}}}=
\]

6. [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)
------------------------

 

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


>>

不过没有化简.

8. [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)

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

9. [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
------------------------

 

10. [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 版本中已经修复. 

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