ccccourse / ai108b

人工智慧 -- 108 學年度下學期 (陳鍾誠的課程作業)
1 stars 39 forks source link

習題:科學計算練習 #6

Open ccckmit opened 4 years ago

ccckmit commented 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 寫清楚!

rolf0504 commented 4 years ago

1. root instruction = = = = = = = = = 2. diffn instruction = = = = = = = = = 3. rc circuit instruction

ArthurLiao0816 commented 4 years ago

1.擴展到複數上的root2 2.改進diffnpy讓 4 次以上微分的誤差縮小或幾乎消失 3.用 sympy 去求解 rc 電路的微分方程 4.改寫 fftrandompy 程式在不存取 freq 的情況下透過 ifft 的結果印出真正的 freq

TKTim commented 4 years ago

資工三 110610503 李彥霆 1.root2.py 1.root2.md 2.diffn2.py 2.diffn2.md

oxolll commented 4 years ago

1.root.py result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 2.diffn result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 3.rc result -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 4.

koozu commented 4 years ago

110610505 資工三 張皓評 1. root.py result 2. diffn.py result 3. diffeq.py result

AndrewDTN commented 4 years ago

110710539 張仲恩 1 2 3

Mistrum commented 4 years ago

110610508 莊宗憲 資工三 root.py

mauriceaaa commented 4 years ago

110610551 林孟勳 root.py

peter8995 commented 4 years ago

110710518 資工二 王子衡

  1. root
  2. diffn
  3. rccurit
chanyuying commented 4 years ago

110610511 資工三 陳昱瑛

  1. https://github.com/sktwalker/ai108b/blob/master/homework5-1 result https://github.com/sktwalker/ai108b/blob/master/homeworkResult5-1
  2. https://github.com/sktwalker/ai108b/blob/master/homework5-2 result https://github.com/sktwalker/ai108b/blob/master/homeworkResult5-2
  3. https://github.com/sktwalker/ai108b/blob/master/homework5-3 result https://github.com/sktwalker/ai108b/blob/master/homeworkResult5-3
  4. https://github.com/sktwalker/ai108b/blob/master/homework5-4 result https://github.com/sktwalker/ai108b/blob/master/homeworkResult5-4
linjiachi commented 4 years ago

110610540 資工三 林家齊

  1. root2.py
  2. diffn.py
  3. RC.py
sr47ygt commented 4 years ago

110610136 電三甲 李珮綺 1 2