fbpx
维基百科

牛頓-寇次公式

數值分析上,梯形法則辛卜生法則均是數值積分的方法。它們都是計算定積分的。

這兩種方法都屬於牛頓-寇次公式。它們以函數於等距點的值,取得一個次的多項式來近似原來的函數,再行求積。

梯形法則 编辑

 
原函數(藍色)近似為紅色的線性函數
 
多重梯形法則

梯形法則是:

 

這等同將被積函數近似為直線函數,被積的部分近似為梯形

要求得較準確的數值,可以將要求積的區間分成多個小區間,再個別估計,即:

 

可改寫成

 

其中

  

辛卜生法則 编辑

辛卜生法則(Simpson's rule,又稱森遜法則辛普森法則)是:

 

同樣地,辛卜生法則也有多重的版本:

 
 

或寫成

 

牛頓-寇次公式 编辑

牛頓-寇次公式(Newton-Cotes rule / Newton-Cotes formula)以Roger Cotes和艾薩克·牛頓命名。其內容是:

 

其中對  是常數(由 的值決定), 

梯形法則和辛卜生法則便是 的情況。

亦有不採用在邊界點來估計的版本,即取  

原理 编辑

  • 假設已知 的值。
  •  點進行插值,求得對應 拉格朗日多項式
  • 對該 次的多項式求積。

該積分便可以作為 的近似,而由於該拉格朗日多項式的係數都是常數(由 決定其值),所以積函數的係數(即 )都是常數。

缺點 编辑

對於次數較高的多項式而有很大誤差(龍格現象),不如高斯積分法

例子 编辑

下表中   

精度 名稱 公式 誤差
1 梯形法則    
2 辛卜生法則    
3 辛卜生3/8法則
辛卜生第二法則
   
4 保爾法則
(Boole's rule
/ Bode's rule)
   
不用界點的
0 中點法    
1    
2    
3    

參考 编辑

  • M. Abramowitz and I. A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. (See Section 25.4.)
  • George E. Forsythe, Michael A. Malcolm, and Cleve B. Moler. Computer Methods for Mathematical Computations. Englewood Cliffs, NJ: Prentice-Hall, 1977. (See Section 5.1.)
  • William H. Press, Brian P. Flannery, Saul A. Teukolsky, William T. Vetterling. Numerical Recipes in C. Cambridge, UK: Cambridge University Press, 1988. (See Section 4.1.)
  • Josef Stoer and Roland Bulirsch. Introduction to Numerical Analysis. New York: Springer-Verlag, 1980. (See Section 3.1.)

外部連結 编辑

  • 黃 Sir 的計算機網頁: Numerical Integration : Trapezoidal Rule and Simpson's Rule (页面存档备份,存于互联网档案馆

牛頓, 寇次公式, 在數值分析上, 梯形法則和辛卜生法則均是數值積分的方法, 它們都是計算定積分的, 這兩種方法都屬於, 它們以函數於等距, displaystyle, 點的值, 取得一個n, displaystyle, 次的多項式來近似原來的函數, 再行求積, 目录, 梯形法則, 辛卜生法則, 原理, 缺點, 例子, 參考, 外部連結梯形法則, 编辑, nbsp, 原函數, 藍色, 近似為紅色的線性函數, nbsp, 多重梯形法則主条目, 梯形公式梯形法則是, displaystyle, approx, frac. 在數值分析上 梯形法則和辛卜生法則均是數值積分的方法 它們都是計算定積分的 這兩種方法都屬於牛頓 寇次公式 它們以函數於等距 n 1 displaystyle n 1 點的值 取得一個n displaystyle n 次的多項式來近似原來的函數 再行求積 目录 1 梯形法則 2 辛卜生法則 3 牛頓 寇次公式 3 1 原理 3 2 缺點 3 3 例子 4 參考 5 外部連結梯形法則 编辑 nbsp 原函數 藍色 近似為紅色的線性函數 nbsp 多重梯形法則主条目 梯形公式梯形法則是 a b f x d x b a f a f b 2 displaystyle int a b f x dx approx b a frac f a f b 2 nbsp 這等同將被積函數近似為直線函數 被積的部分近似為梯形 要求得較準確的數值 可以將要求積的區間分成多個小區間 再個別估計 即 a b f x d x b a n f a f b 2 k 1 n 1 f a k b a n displaystyle int a b f x dx approx frac b a n left f a f b over 2 sum k 1 n 1 f left a k frac b a n right right nbsp 可改寫成 a b f x d x b a 2 n f x 0 2 f x 1 2 f x 2 2 f x n 1 f x n displaystyle int a b f x dx approx frac b a 2n left f x 0 2f x 1 2f x 2 cdots 2f x n 1 f x n right nbsp 其中 對k 0 1 n displaystyle k 0 1 dots n nbsp x k a k b a n displaystyle x k a k frac b a n nbsp 辛卜生法則 编辑主条目 辛普森積分法 辛卜生法則 Simpson s rule 又稱森遜法則 辛普森法則 是 a b f x d x b a 6 f a 4 f a b 2 f b displaystyle int a b f x dx approx frac b a 6 left f a 4f left frac a b 2 right f b right nbsp 同樣地 辛卜生法則也有多重的版本 a b f x d x h 3 f x 0 2 k 1 n 1 f x k 4 k 1 n f x k 1 x k 2 f x n displaystyle int a b f x dx approx frac h 3 cdot left f x 0 2 sum k 1 n 1 f x k 4 sum k 1 n f left frac x k 1 x k 2 right f x n right nbsp h b a n x k a k h displaystyle h frac b a n x k a k cdot h nbsp 或寫成 a b f x d x h 3 f x 0 4 f x 1 2 f x 2 4 f x 3 2 f x 4 4 f x n 1 f x n displaystyle int a b f x dx approx frac h 3 bigg f x 0 4f x 1 2f x 2 4f x 3 2f x 4 cdots 4f x n 1 f x n bigg nbsp 牛頓 寇次公式 编辑牛頓 寇次公式 Newton Cotes rule Newton Cotes formula 以Roger Cotes和艾薩克 牛頓命名 其內容是 a b f x d x i 0 n w i f x i displaystyle int a b f x dx approx sum i 0 n w i f x i nbsp 其中對k 0 1 n displaystyle k 0 1 dots n nbsp w i displaystyle w i nbsp 是常數 由n displaystyle n nbsp 的值決定 x k a k b a n displaystyle x k a k frac b a n nbsp 梯形法則和辛卜生法則便是n 1 2 displaystyle n 1 2 nbsp 的情況 亦有不採用在邊界點來估計的版本 即取 x k a k b a n 1 displaystyle x k a k frac b a n 1 nbsp 原理 编辑 假設已知f x 0 f x 1 f x n displaystyle f x 0 f x 1 dots f x n nbsp 的值 以n 1 displaystyle n 1 nbsp 點進行插值 求得對應f x displaystyle f x nbsp 的拉格朗日多項式 對該n displaystyle n nbsp 次的多項式求積 該積分便可以作為 a b f x d x displaystyle int a b f x dx nbsp 的近似 而由於該拉格朗日多項式的係數都是常數 由n displaystyle n nbsp 決定其值 所以積函數的係數 即w i displaystyle w i nbsp 都是常數 缺點 编辑 對於次數較高的多項式而有很大誤差 龍格現象 不如高斯積分法 例子 编辑 下表中f i f x i displaystyle f i f x i nbsp 3 a b displaystyle xi in a b nbsp h b a displaystyle h b a nbsp 精度 名稱 公式 誤差1 梯形法則 h 2 f 0 f 1 displaystyle frac h 2 f 0 f 1 nbsp 2 h 3 3 f 2 3 displaystyle frac 2h 3 3 f 2 xi nbsp 2 辛卜生法則 h 6 f 0 4 f 1 f 2 displaystyle frac h 6 f 0 4f 1 f 2 nbsp h 5 90 f 4 3 displaystyle frac h 5 90 f 4 xi nbsp 3 辛卜生3 8法則辛卜生第二法則 h 8 f 0 3 f 1 3 f 2 f 3 displaystyle frac h 8 f 0 3f 1 3f 2 f 3 nbsp 3 h 5 80 f 4 3 displaystyle frac 3h 5 80 f 4 xi nbsp 4 保爾法則 Boole s rule Bode s rule 2 h 45 7 f 0 32 f 1 12 f 2 32 f 3 7 f 4 displaystyle frac 2h 45 7f 0 32f 1 12f 2 32f 3 7f 4 nbsp 8 h 7 945 f 6 3 displaystyle frac 8h 7 945 f 6 xi nbsp 不用界點的0 中點法 2 h f 1 displaystyle 2hf 1 nbsp h 3 24 f 2 3 displaystyle frac h 3 24 f 2 xi nbsp 1 3 h 2 f 1 f 2 displaystyle frac 3h 2 f 1 f 2 nbsp h 3 4 f 2 3 displaystyle frac h 3 4 f 2 xi nbsp 2 4 h 3 2 f 1 f 2 2 f 3 displaystyle frac 4h 3 2f 1 f 2 2f 3 nbsp 28 h 5 90 f 4 3 displaystyle frac 28h 5 90 f 4 xi nbsp 3 5 h 24 11 f 1 f 2 f 3 11 f 4 displaystyle frac 5h 24 11f 1 f 2 f 3 11f 4 nbsp 95 h 5 144 f 4 3 displaystyle frac 95h 5 144 f 4 xi nbsp 參考 编辑M Abramowitz and I A Stegun eds Handbook of Mathematical Functions with Formulas Graphs and Mathematical Tables New York Dover 1972 See Section 25 4 George E Forsythe Michael A Malcolm and Cleve B Moler Computer Methods for Mathematical Computations Englewood Cliffs NJ Prentice Hall 1977 See Section 5 1 William H Press Brian P Flannery Saul A Teukolsky William T Vetterling Numerical Recipes in C Cambridge UK Cambridge University Press 1988 See Section 4 1 Josef Stoer and Roland Bulirsch Introduction to Numerical Analysis New York Springer Verlag 1980 See Section 3 1 外部連結 编辑黃 Sir 的計算機網頁 Numerical Integration Trapezoidal Rule and Simpson s Rule 页面存档备份 存于互联网档案馆 取自 https zh wikipedia org w index php title 牛頓 寇次公式 amp oldid 78802403, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。