summaryrefslogtreecommitdiff
path: root/182/CH3/EX3.4/example3_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /182/CH3/EX3.4/example3_4.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '182/CH3/EX3.4/example3_4.sce')
-rwxr-xr-x182/CH3/EX3.4/example3_4.sce4
1 files changed, 2 insertions, 2 deletions
diff --git a/182/CH3/EX3.4/example3_4.sce b/182/CH3/EX3.4/example3_4.sce
index b799f4e09..e9eea1e4e 100755
--- a/182/CH3/EX3.4/example3_4.sce
+++ b/182/CH3/EX3.4/example3_4.sce
@@ -8,11 +8,11 @@ Rm=1000;// Coil resistance is 1 K-ohm
// calculation
I=10;// FSD initialisation
m=0;
-while I>0.1,
+while I>0.1,
I=I/10;
Vm=Im*Rm;//voltage across the meter in volts
Is=I-Im;//current through shunt resistance in ampere
Rs=Vm/Is;//shunt resistance in ohm
m=m+1;
printf("(%c) shunt resistance value for %.1f A FSD is %f ohm\n ",A(m),I,Rs);
-end
+end \ No newline at end of file