blob: 70dbcac4dc07c24a9118d1a09fc188835f57cf56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Exa 5.21
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))
|