blob: 5f1684c5ec0de4b41b6a625fe549632a28163f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Exa 5.21
format('v',7);
clc;
clear;
close;
// Given data
// Part (a)
PerError= 1;// in %
A= 10^5;// (Assumed value)
ABita= 1/PerError*100;
Bita= 1/(PerError*A);
disp("% error A Aß 1+Aß")
disp(string(PerError)+" "+string(A)+" "+string(ABita)+" "+string(1+ABita))
// Part (b)
PerError= 5;// in %
ABita= 1/PerError*100;
Bita= 1/(PerError*A);
disp(string(PerError)+" "+string(A)+" "+string(ABita)+" "+string(1+ABita))
// Part (c)
PerError= 50;// in %
ABita= 1/PerError*100;
Bita= 1/(PerError*A);
disp(string(PerError)+" "+string(A)+" "+string(ABita)+" "+string(1+ABita))
|