blob: f9fe38d6d8fe768d1a19fc4f6110aac033bb7be1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example No. 4_10
//Errors in Sequence of Computations
//Pg No. 77
clear ; close ; clc ;
x_a = 2.35 ;
y_a = 6.74 ;
z_a = 3.45 ;
ex = abs(x_a)*10^(-3+1)/2
ey = abs(y_a)*10^(-3+1)/2
ez = abs(z_a)*10^(-3+1)/2
exy = abs(x_a)*ey + abs(y_a)*ex
ew = abs(exy) + abs(ez)
mprintf('\n ex = %.5f \n ey = %.5f \n ez = %.5f \n exy = %.5f \n ew = %.5f \n',ex,ey,ez,exy,ew)
|