Answer

问题及解答

[Bug] 关于printRecursiveSeries()

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

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

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

 

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

 

 

 

 

已经修复(2023-04-08)


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

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

 

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

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

这里实际计算的是 $a_{n+1}=a_n+19$, $a_n=1$.

 


在分数模式下

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

也就是说, 这里的计算规则变为了 a/b(c) == b/c