diff options
Diffstat (limited to '695/CH2/EX2.28/Ex2_28.txt')
-rwxr-xr-x | 695/CH2/EX2.28/Ex2_28.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/695/CH2/EX2.28/Ex2_28.txt b/695/CH2/EX2.28/Ex2_28.txt new file mode 100755 index 000000000..7f884a34f --- /dev/null +++ b/695/CH2/EX2.28/Ex2_28.txt @@ -0,0 +1,14 @@ +//Caption:Determine the value of resistance
+//Exa:2.28
+clc;
+clear;
+close;
+V=220;//in volts
+R_a=0.1;//in ohms
+N_1=800;//in rpm
+N_2=520;//in rpm
+I_a1=20;//in ampers
+E_1=V-(I_a1*R_a);//in volts
+E_2=N_2*E_1/N_1;//in volts
+R_A=-(E_2-V+I_a1*R_a)/20;
+disp(R_A,'Additional resistance(in ohms)=');
\ No newline at end of file |