Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

(none)

0 views
Skip to first unread message

Jafar Sadjadi

unread,
Jan 12, 1998, 3:00:00 AM1/12/98
to

Mandatory material for reading and assignment compeltions:

Chapter 1:

Section 1.1
1.2 (except 1.2.6)
1.3 (except 1.3.6)

Chapter 2:

Section 2.1
2.2 (except 2.2.7 and 2.2.8)
2.3
2.4
2.5

Assignment:

Optional: RQ 2.1, 2.17 2.20 2.24 2.37

Due (22/1) RQ 2.57 and 2.58, Exercises 2.4 and 2.17
Due (29/1) Computer Exercise: 2.5

The following is the demoder.m used in MATLAB Demo


%Demonstration of errors of computing
clear; %Clears the whole work space
clg; %clears the graphcis window

%We are going to demonstrate the errors in
%computing f'(x) at x=1 when f(x) = sin(x), x in radians

%create a vector of x's

n=7;
x=ones(n,1);
fx = sin(x);

h = sqrt(eps)*[1000 100 10 1 .1 .01 .001 ]';
xh = x + h;

fxh = sin(xh);

dfx = (fxh - fx)./h;

actual = cos(1)*ones(size(dfx));

abserror = abs(dfx - actual);

relerror = abserror./actual;



plot(abserror)
pause
plot(relerror)



0 new messages