diff options
Diffstat (limited to '995/CH2')
31 files changed, 266 insertions, 0 deletions
diff --git a/995/CH2/EX2.1/Ex2_1.sce b/995/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..7ca1dd204 --- /dev/null +++ b/995/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,9 @@ +//Ex:2.1
+clc;
+clear;
+close;
+marked=220;//in ohms
+measured=207;//in ohms
+err=marked-measured;
+tol=(err/marked)*100;
+printf("Tolerance = %f %%",tol);
diff --git a/995/CH2/EX2.10/Ex2_10.sce b/995/CH2/EX2.10/Ex2_10.sce new file mode 100755 index 000000000..33fb35773 --- /dev/null +++ b/995/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,5 @@ +//Ex:2.10
+clc;
+clear;
+close;
+printf("Resistance = 330 ohms with 2%% tolerance");
\ No newline at end of file diff --git a/995/CH2/EX2.11/Ex2_11.sce b/995/CH2/EX2.11/Ex2_11.sce new file mode 100755 index 000000000..7bec7edb2 --- /dev/null +++ b/995/CH2/EX2.11/Ex2_11.sce @@ -0,0 +1,5 @@ +//Ex:2.11
+clc;
+clear;
+close;
+printf("Resistance = 0.22 ohm with 20%% tolerance");
\ No newline at end of file diff --git a/995/CH2/EX2.12/Ex2_12.sce b/995/CH2/EX2.12/Ex2_12.sce new file mode 100755 index 000000000..7274046ad --- /dev/null +++ b/995/CH2/EX2.12/Ex2_12.sce @@ -0,0 +1,11 @@ +//Ex:2.12
+clc;
+clear;
+close;
+r1=22;//in ohms
+r2=47;//in ohms
+r3=33;//in ohms
+r_ser=r1+r2+r3;
+printf("Effective resistance in series = %d ohms",r_ser);
+r_parel=((1/r1)+(1/r2)+(1/r3))^-1;
+printf("\n Effective resistance in parallel = %f ohms",r_parel);
diff --git a/995/CH2/EX2.13/Ex2_13.sce b/995/CH2/EX2.13/Ex2_13.sce new file mode 100755 index 000000000..7cad5b3b7 --- /dev/null +++ b/995/CH2/EX2.13/Ex2_13.sce @@ -0,0 +1,12 @@ +//Ex:2.13
+clc;
+clear;
+close;
+r1=4.7;//in ohms
+r2=47;//in ohms
+r3=12;//in ohms
+r4=27;//in ohms
+r5=r3+r4;
+r_parel=((1/r5)+(1/r2))^-1;
+r_eff=r_parel+r1;
+printf("Effective resistance = %d ohms",r_eff);
diff --git a/995/CH2/EX2.14/Ex2_14.sce b/995/CH2/EX2.14/Ex2_14.sce new file mode 100755 index 000000000..37cd4e88d --- /dev/null +++ b/995/CH2/EX2.14/Ex2_14.sce @@ -0,0 +1,5 @@ +//Ex:2.14
+clc;
+clear;
+close;
+printf("Two 100 ohm resistor of 1 W");
diff --git a/995/CH2/EX2.15/Ex2_15.sce b/995/CH2/EX2.15/Ex2_15.sce new file mode 100755 index 000000000..f1f2e3d28 --- /dev/null +++ b/995/CH2/EX2.15/Ex2_15.sce @@ -0,0 +1,9 @@ +//Ex:2.15
+clc;
+clear;
+close;
+temp_coeff=0.001;//in per degree centigrade
+r_o=1500;//in ohm
+t=80;//temperature diff.
+r_t=r_o*(1+(temp_coeff)*t)
+printf("Resistance at %d degree = %d ohms",t,r_t);
diff --git a/995/CH2/EX2.16/Ex2_16.sce b/995/CH2/EX2.16/Ex2_16.sce new file mode 100755 index 000000000..253cf5a61 --- /dev/null +++ b/995/CH2/EX2.16/Ex2_16.sce @@ -0,0 +1,11 @@ +//Ex:2.16
+clc;
+clear;
+close;
+temp_coeff=0.0005;//in per degree centigrade
+r_t1=680;//in ohm
+t1=20;//temperature diff.
+t2=90;
+r_o=r_t1/(1+(temp_coeff)*t1);
+r_t2=r_o*(1+(temp_coeff)*t2);
+printf("Resistance at %d degree = %f ohms",t2,r_t2);
diff --git a/995/CH2/EX2.17/Ex2_17.sce b/995/CH2/EX2.17/Ex2_17.sce new file mode 100755 index 000000000..1a3e85bd9 --- /dev/null +++ b/995/CH2/EX2.17/Ex2_17.sce @@ -0,0 +1,9 @@ +//Ex:2.17
+clc;
+clear;
+close;
+r_o=40;//resis at 0 degree
+r_t=44;//at 100 degree
+t=100;//temperature diff.
+temp_coeff=(1/t)*((r_t/r_o)-1);
+printf("Temperature Coefficient = %f per degree centigrade",temp_coeff);
diff --git a/995/CH2/EX2.18/Ex2_18.sce b/995/CH2/EX2.18/Ex2_18.sce new file mode 100755 index 000000000..0c7a1c75a --- /dev/null +++ b/995/CH2/EX2.18/Ex2_18.sce @@ -0,0 +1,11 @@ +//Ex:2.18
+clc;
+clear;
+close;
+V_1=50;
+V_2=10;
+dV=V_1-V_2;//in volts
+dt=0.1;//in seconds
+C=22*10^-6;
+i=C*(dV/dt)*1000;//in mA
+printf("Current flow = %f milliAmps",i);
\ No newline at end of file diff --git a/995/CH2/EX2.19/Ex2_19.sce b/995/CH2/EX2.19/Ex2_19.sce new file mode 100755 index 000000000..bd9a5e373 --- /dev/null +++ b/995/CH2/EX2.19/Ex2_19.sce @@ -0,0 +1,8 @@ +//Ex:2.19
+clc;
+clear;
+close;
+C=10*10^-6;
+V=250;//in volts
+Q=V*C*1000;//in millicoulomb
+printf("Charged stored =%f mC",Q);
\ No newline at end of file diff --git a/995/CH2/EX2.2/Ex2_2.sce b/995/CH2/EX2.2/Ex2_2.sce new file mode 100755 index 000000000..aee2c0062 --- /dev/null +++ b/995/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,14 @@ +//Ex:2.2
+clc;
+clear;
+close;
+r=39;//in ohms
+v=9;//in volts
+i=(v/r);//in Amps
+printf("Current = %d mA",i*1000);
+tol=0.1;//i.e, 10%
+r_min=r-(tol*r);
+i_max=v/r_min;
+r_max=r+(tol*r);
+i_min=v/r_max;
+printf("\n Max.Current = %f mA & Min Current= %f mA",i_max*1000,i_min*1000);
\ No newline at end of file diff --git a/995/CH2/EX2.20/Ex2_20.sce b/995/CH2/EX2.20/Ex2_20.sce new file mode 100755 index 000000000..3a4c5f3c5 --- /dev/null +++ b/995/CH2/EX2.20/Ex2_20.sce @@ -0,0 +1,8 @@ +//Ex:2.20
+clc;
+clear;
+close;
+C=47*10^-6;//in farads
+W=4;//energy in joules
+V=sqrt(W/(0.5*C));
+printf("Voltage tht be applied = %d volts",V);
\ No newline at end of file diff --git a/995/CH2/EX2.21/Ex2_21.sce b/995/CH2/EX2.21/Ex2_21.sce new file mode 100755 index 000000000..583a8a59a --- /dev/null +++ b/995/CH2/EX2.21/Ex2_21.sce @@ -0,0 +1,10 @@ +//Ex:2.21
+clc;
+clear;
+close;
+E_o=8.85*10^-12;
+E_r=5.4;
+C=1*10^-9;
+d=0.1*10^-3;
+A=(C*d)/(E_o*E_r)*10^4;
+printf("Required plate area = %f sq. cm",A);
\ No newline at end of file diff --git a/995/CH2/EX2.22/Ex2_22.sce b/995/CH2/EX2.22/Ex2_22.sce new file mode 100755 index 000000000..8ffef6823 --- /dev/null +++ b/995/CH2/EX2.22/Ex2_22.sce @@ -0,0 +1,11 @@ +//Ex:2.22
+clc;
+clear;
+close;
+E_o=8.85*10^-12;
+E_r=4.5;
+n=6;//no. of plates
+d=0.2*10^-3;//in meter
+A=20*10^-4;//in sq.meter
+C={(E_o*E_r*(n-1)*A)/d}*10^11;
+printf("Capacitance = %d pF",C);
\ No newline at end of file diff --git a/995/CH2/EX2.23/Ex2_23.sce b/995/CH2/EX2.23/Ex2_23.sce new file mode 100755 index 000000000..ccd817d18 --- /dev/null +++ b/995/CH2/EX2.23/Ex2_23.sce @@ -0,0 +1,5 @@ +//Ex:2.23
+clc;
+clear;
+close;
+printf("Capacitance = 10000 pF of 10%%");
\ No newline at end of file diff --git a/995/CH2/EX2.24/Ex2_24.sce b/995/CH2/EX2.24/Ex2_24.sce new file mode 100755 index 000000000..d94626a6e --- /dev/null +++ b/995/CH2/EX2.24/Ex2_24.sce @@ -0,0 +1,5 @@ +//Ex:2.24
+clc;
+clear;
+close;
+printf("Capacitance = 150 pF of 2%% tolerance at 100 V");
\ No newline at end of file diff --git a/995/CH2/EX2.25/Ex2_25.sce b/995/CH2/EX2.25/Ex2_25.sce new file mode 100755 index 000000000..ec048255e --- /dev/null +++ b/995/CH2/EX2.25/Ex2_25.sce @@ -0,0 +1,12 @@ +//Ex:2.25
+clc;
+clear;
+close;
+C1=2;//in nF
+C2=4;//in nF
+C3=2;
+C4=4;
+C_a=C1+C2;
+C_b=C_a*C3/(C_a+C3);
+C_eff=C4+C_b;
+printf("Capacitance = %f nF",C_eff);
\ No newline at end of file diff --git a/995/CH2/EX2.26/Ex2_26.sce b/995/CH2/EX2.26/Ex2_26.sce new file mode 100755 index 000000000..670fd038e --- /dev/null +++ b/995/CH2/EX2.26/Ex2_26.sce @@ -0,0 +1,7 @@ +//Ex:2.26
+clc;
+clear;
+close;
+C=100;//in uF
+C_eff=C*C/(C+C);
+printf("Two capacitors of %d uF be in parallel used to make %d uF capacitance",C,C_eff);
\ No newline at end of file diff --git a/995/CH2/EX2.27/Ex2_27.sce b/995/CH2/EX2.27/Ex2_27.sce new file mode 100755 index 000000000..96b00336c --- /dev/null +++ b/995/CH2/EX2.27/Ex2_27.sce @@ -0,0 +1,11 @@ +//Ex:2.27
+clc;
+clear;
+close;
+L=600*10^-3;//in H
+I1=6;//in A
+I2=2;//in A
+dI=I1-I2;
+dt=250*10^-3;//in sec.
+E=-L*(dI/dt);
+printf("Induced voltage = %f volts",E);
\ No newline at end of file diff --git a/995/CH2/EX2.28/Ex2_28.sce b/995/CH2/EX2.28/Ex2_28.sce new file mode 100755 index 000000000..a0e86b0d9 --- /dev/null +++ b/995/CH2/EX2.28/Ex2_28.sce @@ -0,0 +1,8 @@ +//Ex:2.28
+clc;
+clear;
+close;
+E=2.5;//energy in joules
+L=20*10^-3;//in henry
+I=sqrt(E/(0.5*L));
+printf("Current = %f A",I);
\ No newline at end of file diff --git a/995/CH2/EX2.29/Ex2_29.sce b/995/CH2/EX2.29/Ex2_29.sce new file mode 100755 index 000000000..b4e2154e1 --- /dev/null +++ b/995/CH2/EX2.29/Ex2_29.sce @@ -0,0 +1,11 @@ +//Ex:2.29
+clc;
+clear;
+close;
+u_o=12.57*10^-7;
+u_r=500;
+A=15*10^-4;//area of cross-section in sq. meters
+l=20*10^-2;//length
+L=100*10^-3;//in henry
+n=sqrt((L*l)/(u_r*u_o*A));
+printf("Inductor requires %d turns of wire",n);
\ No newline at end of file diff --git a/995/CH2/EX2.3/Ex2_3.sce b/995/CH2/EX2.3/Ex2_3.sce new file mode 100755 index 000000000..0bd668d75 --- /dev/null +++ b/995/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,9 @@ +//Ex:2.3
+clc;
+clear;
+close;
+v=28;//in volts
+i=0.1;//in A
+r=v/i;
+p=v*i;
+printf("Resistance Value = %f ohms & Power dissipated = %f W",r,p);
diff --git a/995/CH2/EX2.30/Ex2_30.sce b/995/CH2/EX2.30/Ex2_30.sce new file mode 100755 index 000000000..fea6d8eca --- /dev/null +++ b/995/CH2/EX2.30/Ex2_30.sce @@ -0,0 +1,7 @@ +//Ex:2.30
+clc;
+clear;
+close;
+//L=(L1*L2)/(L1+L2)
+L_eq=5;//in millihenry
+printf("Inductor of 10 mH wired in parallel would provide %d mH",L_eq);
\ No newline at end of file diff --git a/995/CH2/EX2.31/Ex2_31.sce b/995/CH2/EX2.31/Ex2_31.sce new file mode 100755 index 000000000..6ebcda8fe --- /dev/null +++ b/995/CH2/EX2.31/Ex2_31.sce @@ -0,0 +1,12 @@ +//Ex:2.31
+clc;
+clear;
+close;
+L1=60;//in mH
+L2=60;//in mH
+L_a=L1+L2;
+L3=120;//in mH
+L_b=L_a*L3/(L_a+L3);
+L4=50;//in mH
+L_eq=L4+L_b;
+printf("Equivalent Inductance = %d mH",L_eq);
\ No newline at end of file diff --git a/995/CH2/EX2.4/Ex2_4.sce b/995/CH2/EX2.4/Ex2_4.sce new file mode 100755 index 000000000..9bca66331 --- /dev/null +++ b/995/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,7 @@ +//Ex:2.4
+clc;
+clear;
+close;
+r=10*(10^2);
+printf("Resistor value = %d ohm",r);
+printf("\nTolerance = 10 %%");
diff --git a/995/CH2/EX2.5/Ex2_5.sce b/995/CH2/EX2.5/Ex2_5.sce new file mode 100755 index 000000000..676d6095a --- /dev/null +++ b/995/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,7 @@ +//Ex:2.5
+clc;
+clear;
+close;
+r=27*(10^3);
+printf("Resistor value = %d ohm",r);
+printf("\nTolerance = 5 %%");
diff --git a/995/CH2/EX2.6/Ex2_6.sce b/995/CH2/EX2.6/Ex2_6.sce new file mode 100755 index 000000000..81541c8c3 --- /dev/null +++ b/995/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,7 @@ +//Ex:2.6
+clc;
+clear;
+close;
+r=56*(10^0);
+printf("Resistor value = %d ohm",r);
+printf("\nTolerance = 5 %%");
diff --git a/995/CH2/EX2.7/Ex2_7.sce b/995/CH2/EX2.7/Ex2_7.sce new file mode 100755 index 000000000..c91563a3a --- /dev/null +++ b/995/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,7 @@ +//Ex:2.7
+clc;
+clear;
+close;
+r=25*(10^0);
+printf("Resistor value = %d ohm",r);
+printf("\nTolerance = 20 %%");
diff --git a/995/CH2/EX2.8/Ex2_8.sce b/995/CH2/EX2.8/Ex2_8.sce new file mode 100755 index 000000000..5a79c00ca --- /dev/null +++ b/995/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,7 @@ +//Ex:2.8
+clc;
+clear;
+close;
+r=22*(10^3);
+printf("Bands are Red, Red, Red, Red");
+
diff --git a/995/CH2/EX2.9/Ex2_9.sce b/995/CH2/EX2.9/Ex2_9.sce new file mode 100755 index 000000000..ed2570d80 --- /dev/null +++ b/995/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,6 @@ +//Ex:2.9
+clc;
+clear;
+close;
+printf("Resistance = 4.7 ohm with 10%% tolerance");
+
|