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

1. [BUG] solve() 函数的错误

Posted by haifeng on 2024-05-22 17:49:41 last update 2024-05-30 11:21:34 | Answers (0) | 收藏


>> :version

Version: 0.601

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

这是一个一元二次方程.

  x^2-6x^1+34 == 0


solution>
        x1 = (6+1*-1^0*2^1*5^1*sqrt(1*-1))|2
        x2 = (6-(1*-1^0*2^1*5^1*sqrt(1*-1)))|2

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

 

已解决.   2024-5-29

2. [BUG] 计算带符号的行列式时出现错误

Posted by haifeng on 2024-05-22 17:48:14 last update 2024-05-23 22:37:04 | Answers (0) | 收藏


>> :version

Version: 0.601

>> A=[x-3 -5;
A=[x-3 -5;
5 x-3]
A=[x-3 -5;
input> [x-3,-5;5,x-3]
--------------------

x-3     -5
5       x-3

--------------------
>> det(A)
x*x+22*x-3*x-66


分析原因

det(A)= x-3 * x-3-(-5)*5 =x-3*x+22

这里计算的是 (x-3)*(x+22)=x*x+22*x-3*x-66


问题在于 fr_multiplication() and fr_subtraction() 两个函数.

现已修复.

3. [BUG]读入多项式时产生的问题

Posted by haifeng on 2024-05-17 11:29:48 last update 2024-05-17 11:32:01 | Answers (0) | 收藏


>> lim((3x^5-1)/(2.5x^5+1),x,inf)
result> 96|3125

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

这里程序将 2.5x^5识别为  2.5^5 x^5  

>> 2.5^5
in> 2.5^5

out> 97.65625
------------------------


>> 3/97.65625
in> 3/97.65625

out> 0.03072
------------------------


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

>> 3/97.65625
in> 3/97.65625

out> 96|3125

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

当系数是小数时, 在系数和x之间加上*, 可以避免上面的问题.

>> lim((3x^5-1)/(2.5*x^5+1),x,inf)
result> 6|5

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

4. [BUG]多元多项式的乘法

Posted by haifeng on 2024-05-05 19:29:40 last update 2024-05-05 19:29:40 | Answers (0) | 收藏


>> :version

Version: 0.597

>> :mode polyn
Switch into polynomial mode.

>> symbol(a,b,c,d)
out> a is a variable for polynomial.
out> b is a variable for polynomial.
out> c is a variable for polynomial.
out> d is a variable for polynomial.

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

>> (a+b)(c+d)
in> (a+b)*(c+d)

out> ac+2ad+bc
------------------------

这里正确答案应该是 ac+ad+bc+bd

5. [BUG]多元多项式的乘法

Posted by haifeng on 2024-05-04 09:28:58 last update 2024-05-04 09:28:58 | Answers (0) | 收藏


>> :mode polyn
Switch into polynomial mode.

>> symbol(x,y)
out> x is a variable for polynomial.
out> y is a variable for polynomial.

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

>> (x+y)(x-y)
in> (x+y)*(x-y)

out> +1x^2-1xy+1xy-1y^2
------------------------


>> (x+y)(x-y)+0
in> (x+y)*(x-y)+0

out> +1x^2+0-1y^2+0
------------------------


>> (x^2+xy+y^2)(x-y)
in> (x^2+xy+y^2)*(x-y)

out> +1x^3-1x^2y+1x^2y+0x^y^-1y^3
------------------------


>> (x^2+xy+y^2)(x-y)+0
in> (x^2+xy+y^2)*(x-y)+0

out> +1x^3+0-1y^3
------------------------


>>

6. [Bug]

Posted by haifeng on 2024-04-29 19:01:36 last update 2024-04-29 19:01:36 | Answers (0) | 收藏


>> (ax^5+bx^4)(px^4+qx^3)
in> (ax^5+bx^4)*(px^4+qx^3)

out> a*a*a*a*a*p*p*p*px^9+(a*a*a*a*a*q*q*q+b*b*b*b*p*p*p*p)x^8+b*b*b*b*q*q*qx^7
------------------------


>> (a(x^5)+b(x^4))(p(x^4)+q(x^3))
in> (a(x^5)+b(x^4))*(p(x^4)+q(x^3))

out> x^7+qx^4
------------------------


>> (a*(x^5)+b*(x^4))(p*(x^4)+q*(x^3))
in> (a*(x^5)+b*(x^4))*(p*(x^4)+q*(x^3))

out> a*px^9+(a*q+b*p)x^8+b*qx^7
------------------------

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

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

 

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

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

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