summaryrefslogtreecommitdiff
path: root/182/CH3/EX3.3/example3_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '182/CH3/EX3.3/example3_3.sce')
-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