summaryrefslogtreecommitdiff
path: root/1529/CH10/EX10.23/10_23.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1529/CH10/EX10.23/10_23.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1529/CH10/EX10.23/10_23.sce')
-rwxr-xr-x1529/CH10/EX10.23/10_23.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1529/CH10/EX10.23/10_23.sce b/1529/CH10/EX10.23/10_23.sce
new file mode 100755
index 000000000..f7583f705
--- /dev/null
+++ b/1529/CH10/EX10.23/10_23.sce
@@ -0,0 +1,16 @@
+//Chapter 10, Problem 23
+clc
+V=36.5 //voltage
+V1=50 //max voltage of voltameter
+I1=10 //max current of ammeter
+I=6.25 //current in amperes
+ev=2
+R=V/I
+ev1=(2/100)*V1
+ev2=ev1*100/V
+ei1=(ev/100)*I1
+ei2=ei1*100/I
+eiv=ev2+ei2
+r=eiv*R/100
+printf("Maximum relative error = %.2f percent or %.2f ohm\n\n",eiv,r)
+printf("Resistance = %.2f ohm",R)