Open ccckmit opened 4 years ago
1 請將 07-scientific/algebra/root2.py 擴展到複數上
mac020:algebra mac020$ python3 root2.py root of 1x^2+4x+0= [0.0, -4.0]
2 請改進 07-scientific/algebra/diffn.py ,讓 4 次以上微分的誤差縮小或幾乎消失
mac020:calculus mac020$ python3 diffn.py df(sin, pi/4)= 0.7071067800074049 dfn(sin, 0 pi/4)= 0.7071067811865475 dfn(sin, 1 pi/4)= 0.7071067800074049 dfn(sin, 2 pi/4)= -0.7071067786856844 dfn(sin, 3 pi/4)= -0.7070732888081466 dfn(sin, 4 pi/4)= 0.6938893903907228 dfn(sin, 5 pi/4)= -2428.61286636753 dfn(sin, 6 pi/4)= 1734723.475976807 dfn(sin, 7 pi/4)= 190819582357.4488 dfn(sin, 8 pi/4)= -173472347597680.7 dfn(sin, 9 pi/4)= -1.5612511283791264e+19
可以看到 4 次微分後出現明顯誤差,5 次之後誤差非常大,已經亂掉了。
3 請用 sympy 去求解 RC 電路的微分方程
4 請改寫 fftRandom.py 程式在不存取 freq 的情況下,透過 ifft 的結果,印出真正的 freq 來。
請把你修改的部分之程式原理用 README.md 寫清楚!
1. root instruction = = = = = = = = = 2. diffn instruction = = = = = = = = = 3. rc circuit instruction
1.擴展到複數上的root2 2.改進diffnpy讓 4 次以上微分的誤差縮小或幾乎消失 3.用 sympy 去求解 rc 電路的微分方程 4.改寫 fftrandompy 程式在不存取 freq 的情況下透過 ifft 的結果印出真正的 freq
資工三 110610503 李彥霆 1.root2.py 1.root2.md 2.diffn2.py 2.diffn2.md
1.root.py result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2.diffn result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 3.rc result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4.
110610505 資工三 張皓評 1. root.py result 2. diffn.py result 3. diffeq.py result
110710539 張仲恩 1 2 3
110610508 莊宗憲 資工三 root.py
110610551 林孟勳 root.py
110710518 資工二 王子衡
110610511 資工三 陳昱瑛
110610540 資工三 林家齊
110610136 電三甲 李珮綺 1 2
1 請將 07-scientific/algebra/root2.py 擴展到複數上
2 請改進 07-scientific/algebra/diffn.py ,讓 4 次以上微分的誤差縮小或幾乎消失
可以看到 4 次微分後出現明顯誤差,5 次之後誤差非常大,已經亂掉了。
3 請用 sympy 去求解 RC 電路的微分方程
4 請改寫 fftRandom.py 程式在不存取 freq 的情況下,透過 ifft 的結果,印出真正的 freq 來。
請把你修改的部分之程式原理用 README.md 寫清楚!