{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Math 502Mini project 1

# Math 502Mini project 1 - is nonzero It is the smallest...

This preview shows page 1. Sign up to view the full content.

Zhaohu Fan Math 502 Mini project 1 Q: Compute the machine precision in Matlab Matlab version: Version 7.3.0.267( R2006) License Number: 25441 Theorem 3.6 1 | ( ) | | | 1 1 , 2 , t fl x x x t rounding chopping β μ - - - = Can be written in the form ( ) (1 ) fl x x δ = + , | | Matlab function >> [N, EPS]=epsilon N =53 EPS =2.2204e-016 Test just type eps >> eps ans =2.2204e-016 Conclusion: Machine precision is the smallest number ε , such that the difference between 1 and 1 +
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: is nonzero. It is the smallest difference between two numbers that the computer recognizes Appendix function [N, EPS]=epsilon % determination of epsilon for reals EPS = 1.0; N = 0; A = EPS + 1.0; while (A >1.0) N = N + 1; EPS = EPS/2; A = EPS + 1.0; end EPS = abs(2.0 * EPS); Reference: Biswa Nath Datta (2009), Numerical Linear Algebra and Application, SIAM. 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online