Richardson extrapolation ( derivative calculation )
S 程式說明: Solve the nth derivative of a given function by using Richardson extrapolation method. S 相關程式: Solve the nth derivative of a given function by using forward difference , backward difference and central difference method. 功能概述: 使用準確度為 O(h2) 的 central difference 配合 Richardson extrapolation 求出任意單變數函數在某點的導數值,函數的輸入方式就跟一般書上看到的一樣,變數名稱限定用 x 代替,詳情請按這。 程式限制:
- 不適用於不連續函數或是具有奇異點之函數。
- 最多求至 10 階導數。
程式缺失:
- 愈高階之導數值,其 truncation error 愈大。
- 若初始間距(mesh size)設的太小或是容許誤差設的太小或是欲求較高階之導數,可能會發生溢位或除以零的問題,必須特別注意。
四捨五入: 執行結果四捨五入至小數以下第位。 執行時間: 執行結果:
版權所有,任何形式之轉載,請先告知,謝謝!
如果發現程式執行有錯誤,記得要告訴我喔!先謝啦!
This page was written by Jaric on Jul. 31 , 1999. All rights reserved.
請使用支援 VBScript 5.0 的瀏覽器,否則無法正確執行本頁的程式。
[ 首頁 | 重要觀念 | 簡易程式 | 數值分析 | 線上執行 | 檔案下載 | 好站連結 ]
Total pageview since 4/6/1999.