[情報] 荷世平計程作業題目~
積分 f(x)=2x^3-11x^2+12x+5
1.設計兩個方程式使用梯形法(T)跟矩形法(R)=>數值積分
矩形法的數值為兩點中間的x所代的值
2.input "Method" "lower bound" "upper bound" "n intervals"
3.output : 1. Method 2.面積 (分+/-)
"Enter the method of integration (T/R)"
"By Rectangular (Trapezoidal) integration , the area is "
(上面兩個只是範例)
4.should output the difference between memerial and analytical integration
5.最後問user 是否continue?
6.輸出至小數第四位
Grating
1.pass test cases 60%
2.Style/comment/ 15%
3.善用functions 25% (不用會被扣分)
有英文錯誤請補正!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.217.208.219
推
11/09 22:07, , 1F
11/09 22:07, 1F
→
11/09 23:40, , 2F
11/09 23:40, 2F
推
11/09 23:55, , 3F
11/09 23:55, 3F
推
11/10 14:52, , 4F
11/10 14:52, 4F
推
11/11 00:26, , 5F
11/11 00:26, 5F
推
11/12 10:08, , 6F
11/12 10:08, 6F
※ 編輯: JAMES10981 來自: 61.224.41.206 (11/12 10:09)
推
11/12 19:28, , 7F
11/12 19:28, 7F
推
11/16 01:32, , 8F
11/16 01:32, 8F