blob: 32160d5dfa7e0608c553a6de95bd46e65c918f58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
v=10;
v1=5;
disp("Part a");
v1_1=v1+(0.02*v1/100+0.01*v/100);
v1_2=v1-(0.02*v1/100+0.01*v/100);
disp("the possible readings (in V) are"); disp(v1_1);disp("and"); disp(v1_2);
e1=(0.02*v1/100+0.01*v/100)*100/v1;
disp("the percentage error is"); disp(e1);
disp("Part b");
v2=10;
v2_1=v1+(0.02*v2/100+0.01*v/100);
v2_2=v1-(0.02*v2/100+0.01*v/100);
disp("the possible readings (in V) are"); disp(v2_1);disp("and"); disp(v2_2);
e2=(0.02*v2/100+0.01*v/100)*100/v2;
disp("the percentage error is"); disp(e2);
|