310 likes | 578 Views
การประมาณและ ความผิดพลาดจากการตัดทิ้ง. บำรุง พ่วงเกิด Office: ME201 Homepage: http://www.kmitl.ac.th/~kpbumroo . Truncation Errors. Truncation errors เกิดจากการใช้การประมาณ ตัวอย่าง พิจารณาสูตรทางคณิตศาสตร์ที่ใช้ในวิธีเชิงตัวเลขที่ใช้ประมาณฟังก์ชัน Taylor series. Taylor’s Theorem.
E N D
การประมาณและความผิดพลาดจากการตัดทิ้งการประมาณและความผิดพลาดจากการตัดทิ้ง บำรุง พ่วงเกิด Office: ME201 Homepage: http://www.kmitl.ac.th/~kpbumroo 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Truncation Errors Truncation errors เกิดจากการใช้การประมาณ ตัวอย่าง พิจารณาสูตรทางคณิตศาสตร์ที่ใช้ในวิธีเชิงตัวเลขที่ใช้ประมาณฟังก์ชัน Taylor series 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Taylor’s Theorem Remainder ถ้าฟังก์ชัน f และอนุพันธ์อันดับ n+1 ต่อเนื่องในช่วงที่ประกอบไปด้วย a และ x 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
First Theorem of Mean for Integral Average value for the function g() ถ้าฟังก์ชัน gต่อเนื่องและทำการ integrate ได้ในช่วงที่ประกอบด้วย aและ xแล้วจะมีจุด ระหว่าง aและ xที่ 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Second Theorem of Mean for Integrals ถ้าฟังก์ชัน gและh ต่อเนื่องและ integrate ได้ในช่วงที่ประกอบด้วย aและ x และ hไม่เปลี่ยนเครื่องหมายในช่วง แล้วจะมีจุด ระหว่าง aและ xที่ 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Second Theorem of Mean for Integral Taylor’s Theorem 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
The Taylor Series Zero-order approximation First-order approximation Second-order approximation 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
The Taylor Series The complete Taylor series Remainder term 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
The Taylor Series The complete Taylor series Remainder term 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
The Taylor Series • Remainder • เขียนอยู่ในรูปของ • O(h) halving the step size halve the error • O(h2) halving the step size quarter the error 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
The Taylor Series 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Quiz ให้ใช้ Taylor series ที่ n=0 ถึง n=5 ประมาณค่า f(x) = sin x ที่ xi+1 = /4 จากค่าของ f(x) และ อนุพันธ์ของ f(x) ที่ xi = /6 พร้อมทั้งประมาณค่าความผิดพลาด t Hint: sin(/6 ) = 1/2, d(sin x)/dx = cos x, d(cos x)/dx = -sin x 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Taylor Series - Remainder Zero-order prediction 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Taylor Series - Remainder Zero-order prediction 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
ปัญหากระโดดร่ม Taylor series ของความเร็ว ตัดเทอมทิ้งเหลือแค่ อนุพันธ์อันดับหนึ่ง 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
ปัญหากระโดดร่ม Truncation error 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Forward Difference Approximation of the First Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Backward Difference Approximation of the First Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Centered Difference Approximation of the First Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Centered Difference Approximation of the First Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Forward Difference Approximation of the Second Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Backward Difference Approximation of the Second Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Numerical Differentiation Centered Difference Approximation of the Second Derivative 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation Functions of a Single Variable 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation Functions of More than One Variable 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation Functions of More than One Variable 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation • Stability and Condition • Condition sensitivity to changes in input • Numerically unstable the uncertainty of the input value is grossly magnified by numerical method 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation Condition number =1 function’s relative error is identical to the relative error in x > 1 relative error is amplified < 1 relative error is attenuated Large value ill-conditioned 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Error Propagation 01052006 การคำนวณทางวิศวกรรม (Engineering Computation) เกิดจากการคำนวณ
Total Numerical Error Total numerical error = truncation + round off Round off error increase the number of significant on computer Round off error subtractive cancellation or number of computations Truncation error decreasing the step size Truncation errors are decreased as round-off errors are increased 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)
Total Numerical Error Truncation and round-off errors 01052006 การคำนวณทางวิศวกรรม (Engineering Computation)