diff options
Diffstat (limited to '182/CH3')
-rwxr-xr-x | 182/CH3/EX3.3/example3_3.sce | 5 | ||||
-rwxr-xr-x | 182/CH3/EX3.4/example3_4.sce | 4 |
2 files changed, 4 insertions, 5 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 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 |