summaryrefslogtreecommitdiff
path: root/620/CH13/EX13.10/example13_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH13/EX13.10/example13_10.sce')
-rw-r--r--620/CH13/EX13.10/example13_10.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/620/CH13/EX13.10/example13_10.sce b/620/CH13/EX13.10/example13_10.sce
new file mode 100644
index 000000000..32160d5df
--- /dev/null
+++ b/620/CH13/EX13.10/example13_10.sce
@@ -0,0 +1,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); \ No newline at end of file