summaryrefslogtreecommitdiff
path: root/182/CH3/EX3.3
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.3
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.3')
-rwxr-xr-x182/CH3/EX3.3/example3_3.sce5
1 files changed, 2 insertions, 3 deletions
diff --git a/182/CH3/EX3.3/example3_3.sce b/182/CH3/EX3.3/example3_3.sce
index 3a84519b6..468477f07 100755
--- a/182/CH3/EX3.3/example3_3.sce
+++ b/182/CH3/EX3.3/example3_3.sce
@@ -1,4 +1,3 @@
-
//example 3-3 in page 41
clc;
//Given Data
@@ -9,7 +8,7 @@ IM=0.1e-3;//FSD(IM)=0.1 mA
Rs=1;//shunt resistance in ohm
//calculation
n=2;//initialisation
-while n>0.25,
+while n>0.25,
n=n/2;
Im=IM*n;
Vm=Im*Rm;// Meter voltage in volts
@@ -17,4 +16,4 @@ while n>0.25,
I=Im+Is;//toatal current through the ammeter I=Im+Is in ampere
m=m+1;
printf("(%c) current through the ammeter at %.2f FSD=%.1f mA\n",A(m),n,I*1000);
-end
+end \ No newline at end of file