summaryrefslogtreecommitdiff
path: root/3515/CH5/EX5.21/Ex_5_21.sce
diff options
context:
space:
mode:
Diffstat (limited to '3515/CH5/EX5.21/Ex_5_21.sce')
-rw-r--r--3515/CH5/EX5.21/Ex_5_21.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3515/CH5/EX5.21/Ex_5_21.sce b/3515/CH5/EX5.21/Ex_5_21.sce
new file mode 100644
index 000000000..5f1684c5e
--- /dev/null
+++ b/3515/CH5/EX5.21/Ex_5_21.sce
@@ -0,0 +1,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))