diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /182/CH3/EX3.4/example3_4.sce | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-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-x | 182/CH3/EX3.4/example3_4.sce | 4 |
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 |