blob: 05b355bad5849b2bcc40c8e239a08f10769cdf06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
x=2.86
y=8.34
x1=0.005
y1=0.005
ex=0.0025
ey=0.0025
s1= y*x1 + x*y1
es= x*y*sqrt((ex/x)^2 + (ey/y)^2)
sn2= x*y +es
sn3=x*y - es
printf('The maximum error =%f\n',s1)
printf(' Hence the most probable error = +/- %f\n',es)
printf(' The most probable limits of quantity s are %f',sn2)
printf(' and %f\n',sn3)
|