{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lect_2 - Introduction to Numerical Analysis for Engineers...

This preview shows pages 1–5. Sign up to view the full content.

Introduction to Numerical Analysis for Engineers • Fundamentals of Digital Computing – Digital Computer Models – Convergence, accuracy and stability – Number representation – Arithmetic operations – Recursion algorithms • Error Analysis – Error propagation – numerical stability – Error estimation – Error cancellation – Condition numbers 2.29 Numerical Marine Hydrodynamics Lecture 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Floating Number Representation m Mantissa b Base e Exponent Examples Decimal Binary Convention Decimal Max mantissa Min mantissa Binary Max exponent Min exponent General 2.29 Numerical Marine Hydrodynamics Lecture 2
Error Analysis Number Representation Addition and Subtraction Absolute Error Relative Error Multiplication and Division Relative Error Unbounded Absolute Error Bounded Relative Error Shift mantissa of largest number Result has exponent of largest number 2.29 Numerical Marine Hydrodynamics Lecture 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Digital Arithmetics Finite Mantissa Length function c = radd(a,b,n) % radd.m % function c = radd(a,b,n) % % Adds two real numbers a and b simulating an arithmetic unit with % n significant digits. % % First determine sign sa=sign(a); Limited precision sb=sign(b); if (sa == 0) addition in MATLAB la=-200; else la=ceil(log10(sa*a*(1+10^(-(n+1))))); end if (sb == 0) lb=-200; else
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 12

lect_2 - Introduction to Numerical Analysis for Engineers...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online