Questions in category: Bug (Bug)

<[1] [2] [3] >

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

## 2. [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,

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

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

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

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

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

## 4. [Bug]分数模式下 sum 函数的bug

Posted by haifeng on 2023-05-01 11:47:35 last update 2023-05-01 16:37:53 | Answers (0) | 收藏

>> sum(1/8*((i-1)/8)^2,i,1,8)
(512*128*512*32*512*128*512*0*^2+51228445761339392+27584547717644288)|288230376151711744
------------------------

>> sum((i-1)^2,i,1,2)
(0*^2+0+^2)
------------------------

## 5. [Bug] 求解一元二次方程

Posted by haifeng on 2023-04-22 10:11:25 last update 2023-04-25 20:57:48 | Answers (0) | 收藏

>> solve(x^2+1==0)

x^2+1 == 0

solution>
x1 = 2.00000000*i/2-/(2)
x2 = -2.00000000*i/2-/(2)

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

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

>> solve(x^2+1==0)

x^2+1 == 0

Delta=b^2-4ac=-4
sqrt(Delta)=2*i

solution>
x1 = (+2*i)/2
x2 = (-2*i)/2

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

## 6. [Bug]

Posted by haifeng on 2023-04-15 14:40:53 last update 2023-04-15 14:41:43 | Answers (0) | 收藏

>> A=[i j k;
A=[i j k;
-3 4 -6;
1 -1 5]
A=[i j k;
input> [i,j,k;-3,4,-6;1,-1,5]
det(A)=14*i+15*j-3*k-6*j-4*k
----------------------------
type: matrix
name: A
value:
i       j       k
-3      4       -6
1       -1      5

determinant: 14*i+15*j-3*k-6*j-4*k
--------------------

## 7. [Bug] 幂运算

Posted by haifeng on 2023-04-09 17:10:20 last update 2023-04-09 17:10:20 | Answers (0) | 收藏

>> (48/6)^(1/2)+(3)^(1/2)
in> (48/6)^(1/2)+(3)^(1/2)

out> (8^(1*sqrtn(1,2)+2)*sqrtn(3,2))|2)*sqrtn(1,2)

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

## 8. [Bug] 关于printRecursiveSeries()

Posted by haifeng on 2023-04-08 14:11:11 last update 2023-04-09 13:19:36 | Answers (0) | 收藏

>> printRecursiveSeries(a_n==n^2,n,1,10)
110

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

>> printRecursiveSeries(8x9,x,1,10,\n)
1

in> printRecursiveSeries(8x9,x,1,10,\n)

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

>> printRecursiveSeries(8x+19,x,1,10,\n)
1
20
39
58
77
96
115
134
153
172

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

>> printRecursiveSeries(8|3x9|2,x,1,10,\n)
1|1
8|319|2
232*|2|12122

>> printRecursiveSeries(8|3*x*9|2,x,1,10,\n)
1
27
729
19683
531441
14348907
387420489
10460353203
282429536481
7625597484987

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

printRecursiveSeries(3*x*9,x,1,10,\n)

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

>> printRecursiveSeries(8/3*x_n*9/2,x_n,1,10,\n)
1
12.00000002
144.00000042
1728.00000720
20736.00011232
248832.00165888
2985984.02363904
35831808.32845824
429981700.47897600
5159780412.19743751

=========================

>>  8/3(1)
in> 8/3(1)

out> 3

>> 1/2(2)
in> 1/2(2)

out> 1
------------------------

>> 1/2(1)
in> 1/2(1)

out> 2
------------------------

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

out> 0.66666667
------------------------

>> 1/2(8)
in> 1/2(8)

out> 0.25
------------------------

## 9. [Bug] 多项式乘法的Bug

Posted by haifeng on 2023-03-28 13:37:03 last update 2023-03-28 19:24:16 | Answers (0) | 收藏

>> :mode polyn
Switch into polynomial mode.

>> (-27|5x+9) * (-1|3x+1|9)
in> (-27|5x+9)*(-1|3x+1|9)

out> 9|5x^2-3|5-3x^1+1
------------------------

9|5x^2-18|5x^1+1

## 10. [Bug] 指数为小数的幂

Posted by haifeng on 2023-03-25 08:44:58 last update 2023-03-25 08:46:50 | Answers (0) | 收藏

>> 1.007^2.98
in> 1.007^2.98

out> 2.-1-1-1-1-1-1-1-1-1
------------------------

<[1] [2] [3] >