当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

华南师范大学:《数值计算方法》课程PPT教学课件(数值分析 Numerical Analysis)Numerical Differentiation

资源类别:文库,文档格式:PPTX,文档页数:30,文件大小:735.93KB,团购合买
点击下载完整版文档(PPTX)

车南种彩头寻 Numerical Differentiation

Numerical Differentiation

Numerical Differentiation Estimate the derivatives (slope,curvature,etc.) of a function by using the function values at only a set of discrete points Ordinary differential equation (ODE) Partial differential equation (PDE) Represent the function by Taylor polynomials or Lagrange interpolation Evaluate the derivatives of the interpolation polynomial at selected nodal points

Numerical Differentiation ◼ Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete points ◼ Ordinary differential equation (ODE) ◼ Partial differential equation (PDE) ◼ Represent the function by Taylor polynomials or Lagrange interpolation ◼ Evaluate the derivatives of the interpolation polynomial at selected nodal points

True derivative Approximation Numerical Differentiation Forward difference (a) Backward difference True derivative Centered difference Approximation 2

Forward difference Backward difference Centered difference Numerical Differentiation

Forward difference True derivative Approximation Xi-1 Xi X+1

Forward difference xi−1 xi xi+1 x h

Backward difference True derivative Approximation Xi-1 xi Xi+1

Backward difference xi−1 xi xi+1 x h

Centered difference True derivative Approximation 2h Xi-1 Xi Xi+1

Centered difference xi−1 xi xi+1 x 2h

First Derivatives f'(x) i-2 -1 i计l i+2 ■Forward difference 了x)f4小-fs-4-y 七+1-X, xi41- Backward difference x))f( Xi-Xi-1 Xi-xi-1 ■Central difference f(x)f(xu)-f(x)=yu-y i+1-i-1 Xi+l-Xi-1

First Derivatives ◼ Forward difference ◼ Backward difference ◼ Central difference f ( x ) i-2 i-1 i i+1 i+2 i 1 i 1 i 1 i 1 i 1 i 1 i 1 i 1 i i 1 i i 1 i i 1 i i 1 i 1 i i 1 i i 1 i i 1 i x x y y x x f ( x ) f ( x ) f ( x ) x x y y x x f ( x ) f ( x ) f ( x ) x x y y x x f ( x ) f ( x ) f ( x ) + − + − + − + − − − − − + + + + − − = − −   − − = − −   − − = − −   x y

Truncation Errors Uniform grid spacing h2 fx)=x,+)=x+(+2∫x,+x+ h2 d=0-)=0代-x+2x)了R fonvard:P()f(a)() O h 2 backward:frx))=f)-f小+gfr5,) 0(h) h central f(x)=f)-f( f"(5) 02) 2h 6

Truncation Errors ◼ Uniform grid spacing        = − = −  +  −  + = + = +  +  +  + − +   f ( x ) 3! h f ( x ) 2! h f ( x ) f ( x h ) f ( x ) hf ( x ) f ( x ) 3! h f ( x ) 2! h f ( x ) f ( x h ) f ( x ) hf ( x ) i 3 i 2 i 1 i i i i 3 i 2 i 1 i i i          −  −  = +  −  = −  −  = + − − + ( ) ) ( ) ( ) : ( ) ( ) ( ) ( ) : ( ) ( ) ( ) ( ) : ( ) 2 3 2 i 1 i 1 i 2 i i 1 i 1 i 1 i i f O(h 6 h 2h f x f x central f x f O(h) 2 h h f x f x backward f x f O(h) 2 h h f x f x forward f x   

Error Propagation f ImAr Estimated error Error in x leads to error in f(x) x土△→ fx)±△f(E)=fx)±f'(x)x-)=f(x)±f'(x)△c

Error Propagation f x f x f x f x x x f x f x x x x ~ ) ( ) ( ) ~ ) ( ) ( )( ~ ( ) ( ~   =   − =       Error in x leads to error in f(x)

Total Numerical Error Point of diminishing returns Total error Truncation error Round-off error log step size Trade-off between truncation and round-off errors

Trade-off between truncation and round-off errors Total Numerical Error

点击下载完整版文档(PPTX)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共30页,试读已结束,阅读完整版请下载
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有