1. 找到 , 使得 , 但 .
Posted by haifeng on 2024-12-16 14:10:59 last update 2024-12-16 14:11:51 | Answers (1) | 收藏
找到
Answer:
Posted by haifeng on 2024-12-16 14:10:59 last update 2024-12-16 14:11:51 | Answers (1) | 收藏
找到
Answer:
Posted by haifeng on 2023-12-21 11:00:47 last update 2023-12-21 11:01:43 | Answers (0) | 收藏
在 Sowya 中, 首先调整计算精度, 比如精确到小数点后 100 位.
>> setprecision(100)
Now the precision is: 100
------------------------
比如这里计算
>> sum((-1)^n/((2*n+1)!),n,0,10)
0.8414709848078965066525409389542263831247347547521504910395056013623995289262652434908558497261901517
------------------------
不够准确. 调整为计算100项
>> sum((-1)^n/((2*n+1)!),n,0,100)
0.8414709848078965066525023216302989996225630607983710656727517099919104043912396689486397435430526956
------------------------
Posted by haifeng on 2023-10-24 18:56:39 last update 2023-10-24 18:58:10 | Answers (0) | 收藏
计算
题目来自 C语言练手题(52个小练习)_c语言练习题-CSDN博客
解答
使用 Sowya的sum()函数
>> sum((2*k-1)*(2*k)*(2*k+1),k,1,50)
13002450
------------------------
Posted by haifeng on 2023-08-30 08:14:03 last update 2024-06-18 21:37:34 | Answers (4) | 收藏
求一元二次方程
(1)
(2)
(3)
(4)
(5)
(6)
(7)
Posted by haifeng on 2023-02-26 22:30:04 last update 2023-04-05 19:14:04 | Answers (0) | 收藏
Calculator 是计算器的意思, 是十分普通的. 因此应该起个比较特别的名字.
候选:
Souya, 数学的吴音. 或者 Sowya, 法语发音比较接近吴语中的“数学”发音.
THL , maTH Language. THL 也为了纪念家乡.
Posted by haifeng on 2023-02-24 22:33:00 last update 2023-02-28 15:21:33 | Answers (1) | 收藏
北太天元实现《数值分析》中的简单递推式 观察舍入误差的爆炸_哔哩哔哩_bilibili
使用 Calculator 求
首先易得如下递推公式,
事实上,
于是, 我们可以使用 Calculator 中的函数 printRecursiveSeries 来求由递推公式所确定的序列
>> setprecision(20)
in> setprecision(20)
Now the precision is: 20
------------------------
>> printRecursiveSeries(-5*I_k+1/(k+1),I_k,0.0883922160302268689414,20,\n,linenumber)
in> printRecursiveSeries(0-5*I_k+1/(k+1),I_k,0.0883922160302268689414,20,\n,linenumber)
【1】 0.0883922160302268689414
【2】 0.0580389198488656552930
【3】 0.0431387340890050568650
【4】 0.0343063295549747156750
【5】 0.0284683522251264216250
【6】 0.0243249055410345585450
【7】 0.0212326151519700644150
【8】 0.0188369242401496779250
【9】 0.0169264899103627214850
【10】 0.0153675504481863925750
【11】 0.0140713386681589462150
【12】 0.0129766399925386022550
【13】 0.0120398769603839118050
【14】 0.0112291866266518695450
【15】 0.0105207335334073189450
【16】 0.0098963323329634052750
【17】 0.0093418677469476795050
【18】 0.0088462168208171580350
【19】 0.0084004948432826308750
【20】 0.0079975257835868456250
----------------
By Calculator
https://zhuanlan.zhihu.com/p/566572045
Posted by haifeng on 2023-02-22 19:56:51 last update 2023-02-23 22:04:52 | Answers (0) | 收藏
in> register(code)
This is the register code:
706f02c662ef45331a51abcd2b7dc3cfbe27bccf5bc57d02b751f22820b7d718
>>
atzjg, 2023-2-22
Posted by haifeng on 2023-02-04 14:18:28 last update 2023-02-04 14:18:28 | Answers (0) | 收藏
Hanoi 问题的递推关系为
>> printRecursiveSeries(2*n+1,n,1,10,\n)
in> printRecursiveSeries(2*n+1,n,1,10,\n)
3
7
15
31
63
127
255
511
1023
2047
------------------------
注意输入时 2*n+1 如果忘了乘号 *, 则有
>> printRecursiveSeries(2n+1,n,1,10,\n)
in> printRecursiveSeries(2n+1,n,1,10,\n)
22
223
2224
22225
222226
2222227
22222228
222222229
2222222230
22222222231
------------------------
Posted by haifeng on 2023-02-03 19:10:05 last update 2023-02-04 10:08:41 | Answers (0) | 收藏
------------------------
>> c=3
--------------------
>> a=1
--------------------
>> l=12
--------------------
>> u=21
--------------------
>> t=20
--------------------
>> o=15
--------------------
>> r=18
--------------------
>> c+a+l+c+u+l+a+t+o+r
in> 3+1+12+3+21+12+1+20+15+18
out> 106
------------------------
Posted by haifeng on 2022-09-21 11:40:26 last update 2022-09-21 11:40:26 | Answers (0) | 收藏
>> 3 * (2-6 %(3 -7))
in> 3*(2-6%(3-7))
out> 312
------------------------
>> 6%(-4)
in> 6%(-4)
out> -25
------------------------
>> 6%(4)
in> 6%(4)
out> 25
------------------------
>> 6%4
in> 6%4
out> 1
------------------------