diff options
Diffstat (limited to '3673/CH1')
38 files changed, 500 insertions, 0 deletions
diff --git a/3673/CH1/EX1.1/Ex1_1.sce b/3673/CH1/EX1.1/Ex1_1.sce new file mode 100644 index 000000000..d477f8cb2 --- /dev/null +++ b/3673/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,7 @@ +//Example 1_1 page no:1
+clc
+clear
+W=70;//Energy in joule
+Q=30;//charge in coloumb
+V=W/Q;
+disp(V,"Voltage(in volts):")
diff --git a/3673/CH1/EX1.10/Ex1_10.sce b/3673/CH1/EX1.10/Ex1_10.sce new file mode 100644 index 000000000..6d066640d --- /dev/null +++ b/3673/CH1/EX1.10/Ex1_10.sce @@ -0,0 +1,5 @@ +//Example 1_10 page no:13
+clc
+V=50*(10/(10+5))//applying voltage divider rule to the given circuit
+disp(V,"Voltage across 10ohm resistor(in V)")
+//in textbook the voltage is rounded to 1 digit
diff --git a/3673/CH1/EX1.11/Ex1_11.sce b/3673/CH1/EX1.11/Ex1_11.sce new file mode 100644 index 000000000..bea2e202f --- /dev/null +++ b/3673/CH1/EX1.11/Ex1_11.sce @@ -0,0 +1,8 @@ +//Example 1_11 page no:14
+clc
+V=100;//supply voltage
+R1=1;//resistance in kilo_ohm
+R2=5;//resistance in kilo_ohm
+R3=4;//resistance in kilo_ohm
+v=V*(R2+R3)/(R1+R2+R3);
+disp(v,"Voltage across A and B (in volts)")
diff --git a/3673/CH1/EX1.12/Ex1_12.sce b/3673/CH1/EX1.12/Ex1_12.sce new file mode 100644 index 000000000..6aaf038a7 --- /dev/null +++ b/3673/CH1/EX1.12/Ex1_12.sce @@ -0,0 +1,19 @@ +//Example 1_12 page no:14
+clc
+R1=5;//Resistance in ohm
+R2=2;//Resistance in ohm
+R3=1;//Resistance in ohm
+R4=2;//Resistance in ohm
+V=50;//supply voltage
+Rt=R1+R2+R3+R4;//total resistance
+P=V*V/Rt;//calculating total power
+disp(P,"Total power in the circuit (in watts)")
+current=V/Rt;
+P1=current^2*R1;
+disp(P1,"power absorbed in 5 ohms (in watts)")
+P2=current^2*R2;
+disp(P2,"power absorbed in 2 ohms (in watts)")
+P3=current^2*R3;
+disp(P3,"power absorbed in 1 ohms (in watts)")
+P4=current^2*R4;
+disp(P4,"power absorbed in 2 ohms (in watts)")
diff --git a/3673/CH1/EX1.13/Ex1_13.sce b/3673/CH1/EX1.13/Ex1_13.sce new file mode 100644 index 000000000..99ddc353b --- /dev/null +++ b/3673/CH1/EX1.13/Ex1_13.sce @@ -0,0 +1,14 @@ +//Example 1_13 page no:16
+clc
+//apply kirchoff's law to the given circuit
+I=50//current in ampere
+R1=2;//resistance in ohm
+R2=1;//resistance in ohm
+R3=5;//resistance in ohm
+V=I/(1/2+1/1+1/5)
+I1=V/R1;
+disp(I1,"Current flowing in 2 ohm resistor is (in ampere)")
+I2=V/R2;
+disp(I2,"Current flowing in 1 ohm resistor is (in ampere)")
+I3=V/R3;
+disp(I3,"Current flowing in 5 ohm resistor is (in ampere)")
diff --git a/3673/CH1/EX1.14/Ex1_14.sce b/3673/CH1/EX1.14/Ex1_14.sce new file mode 100644 index 000000000..747d24ada --- /dev/null +++ b/3673/CH1/EX1.14/Ex1_14.sce @@ -0,0 +1,15 @@ +//Example 1_14 page no:16
+clc
+I=10;//supply current in ampere
+//apply kirchof law to the circuit
+V=5/(1/5+1/10+1/2+1)
+disp(V,"Voltage across 10 ohm resistor (in volts)")
+R1=5;//resistance in ohm
+R2=10;//resistance in ohm
+R3=2;//resistance in ohm
+R4=1;//resistance in ohm
+I1=V/R1;
+I2=V/R2;
+I3=V/R3;
+I4=V/R4;
+disp(I2,"Current flowing in 10 ohm resistor (in ampere)")
diff --git a/3673/CH1/EX1.15/Ex1_15.sce b/3673/CH1/EX1.15/Ex1_15.sce new file mode 100644 index 000000000..9e2dde80b --- /dev/null +++ b/3673/CH1/EX1.15/Ex1_15.sce @@ -0,0 +1,8 @@ +//Example 1_15 page no:17
+clc
+//apply kirchoff law to the circuit
+It=50;//total current in milli ampere
+I1=30;
+I2=10;
+I3=It-I1-I2;
+disp(I3,"current flowing in R3 (in milli ampere)")
diff --git a/3673/CH1/EX1.16/Ex1_16.sce b/3673/CH1/EX1.16/Ex1_16.sce new file mode 100644 index 000000000..91557b9cf --- /dev/null +++ b/3673/CH1/EX1.16/Ex1_16.sce @@ -0,0 +1,9 @@ +//Example 1_16 page no:18
+clc
+R1=10;//Resistance in ohm
+R2=20;//Resistance in ohm
+R3=30;//Resistance in ohm
+R4=40;//Resistance in ohm
+R=(1/R1+1/R2+1/R3+1/R4)
+Rt=1/R
+disp(Rt,"Total resistance (in ohm)")
diff --git a/3673/CH1/EX1.17/Ex1_17.sce b/3673/CH1/EX1.17/Ex1_17.sce new file mode 100644 index 000000000..7a5c2ebb1 --- /dev/null +++ b/3673/CH1/EX1.17/Ex1_17.sce @@ -0,0 +1,13 @@ +//Example 1_17 page no:20
+clc
+I=12;//total current in circuit(in ampere)
+R1=4;//Resistance in ohm
+R2=4;//Resistance in ohm
+R3=4;//Resistance in ohm
+R=R2*R3/(R2+R3)
+I1=I*R/(R+R1)
+disp(I1,"Current in resistor R1(in ampere)")
+I2=I*R/(R+R2)
+disp(I1,"Current in resistor R1(in ampere)")
+I3=I*R/(R+R3)
+disp(I1,"Current in resistor R1(in ampere)")
diff --git a/3673/CH1/EX1.2/Ex1_2.sce b/3673/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..0637f8f2c --- /dev/null +++ b/3673/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,7 @@ +//Example 1_2 page no:2
+clc
+clear
+t=2;//time in second
+Q=5;//charge in coloumb
+I=Q/t;
+disp(I,"The current flowing through the conductor(in A):")
diff --git a/3673/CH1/EX1.3/Ex1_3.sce b/3673/CH1/EX1.3/Ex1_3.sce new file mode 100644 index 000000000..56fe9e9dc --- /dev/null +++ b/3673/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,7 @@ +//Example 1_3 page no:3
+clc
+clear
+E=50;//Energy in joules
+t=2.5;//Time in second
+P=E/t;
+disp(P,"Power(in watts):")
diff --git a/3673/CH1/EX1.4/Ex1_4.sce b/3673/CH1/EX1.4/Ex1_4.sce new file mode 100644 index 000000000..c0d7943ea --- /dev/null +++ b/3673/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,7 @@ +//Example 1_4 page no:5
+clc
+clear
+R=10;//Resistance in ohm
+V=12;//Voltage in volt
+I=V/R;
+disp(I,"current flowing through resistor(in A):")
diff --git a/3673/CH1/EX1.5/Ex1_5.sce b/3673/CH1/EX1.5/Ex1_5.sce new file mode 100644 index 000000000..7aa4abd7f --- /dev/null +++ b/3673/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,11 @@ +//Example 1_5 page no:6
+clc
+clear
+L=2;//Inductance in henry
+di=2;//Current variation in amps/sec
+di=2*2;//current change in 2 seconds
+t=2;//time in sec
+v=L*di;
+disp(v,"1) voltage across inductor(in volt)")
+W=0.5*(L*di^2);
+disp(W,"2) energy stored in magnetic field(in joules)")
diff --git a/3673/CH1/EX1.6/Ex1_6.sce b/3673/CH1/EX1.6/Ex1_6.sce new file mode 100644 index 000000000..9f9e915a8 --- /dev/null +++ b/3673/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,7 @@ +//Example 1_6 page no:8
+clc
+clear
+C=2*(10^-6);//capacitance in micro farad
+V=1000;//Voltage in volts
+W=0.5*(C)*(V^2);
+disp(W,"Energy stored(in joules)")
diff --git a/3673/CH1/EX1.7/Ex1_7.sce b/3673/CH1/EX1.7/Ex1_7.sce new file mode 100644 index 000000000..117e21c0b --- /dev/null +++ b/3673/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,5 @@ +//Example 1_7 page no:11
+clc
+clear
+v=30-2-1-3-5;//applying kirchof law to the given circuit
+disp(v,"unknown voltage drop(in volt)")
diff --git a/3673/CH1/EX1.8/Ex1_8.sce b/3673/CH1/EX1.8/Ex1_8.sce new file mode 100644 index 000000000..c28002e82 --- /dev/null +++ b/3673/CH1/EX1.8/Ex1_8.sce @@ -0,0 +1,11 @@ +//Example 1_8 page no:11
+clc
+I=10/5//by applying ohms law to the given ciruit
+V1m=1*I;
+disp(V1m,"voltage across resistor V1m(in V)");
+V3_1m=3.1*I;
+disp(V3_1m,"voltage across resistor V1m(in V)");
+V400m=0.4*I;
+disp(V400m,"voltage across resistor V1m(in V)");
+V500m=0.5*I;
+disp(V500m,"voltage across resistor V1m(in V)");
diff --git a/3673/CH1/EX1.9/Ex1_9.sce b/3673/CH1/EX1.9/Ex1_9.sce new file mode 100644 index 000000000..ec2ebb749 --- /dev/null +++ b/3673/CH1/EX1.9/Ex1_9.sce @@ -0,0 +1,7 @@ +//Example 1_9 page no:12
+clc
+I=(100-40)/40//By applying ohms law to the given circuit
+R=30//reisistance in ohm
+V=I*R
+disp(I,"Current across 30ohm resistor(in A):")
+disp(V,"Voltage across 30ohm resistor(in V):")
diff --git a/3673/CH1/EX1.a.1/Example_a_1_1.sce b/3673/CH1/EX1.a.1/Example_a_1_1.sce new file mode 100644 index 000000000..34e4d5c2d --- /dev/null +++ b/3673/CH1/EX1.a.1/Example_a_1_1.sce @@ -0,0 +1,19 @@ +//Example 1_1 page no:20
+clc;
+Rt=1.7*10^3;
+R=3*10^3;
+It=6/Rt;
+It=It*1000;//converting to milli Ampere
+I10k=6/(10*10^3);
+I10k=I10k*1000;//converting to milli Ampere
+I3k=6/(3*10^3);
+I3k=I3k*1000;//converting to milli Ampere
+I4k=It-(I3k+I10k);
+I4_7k=I4k*(5/(5+4.7));
+V3k=I3k*R*10^-3;
+disp(It,"the total current is (in mA)");
+disp(I10k,"the current through 10k resistor is (in mA)");
+disp(I3k,"the current through 3k resistor is (in mA)");
+disp(I4k,"the current through 4k resistor is (in mA)");
+disp(I4_7k,"the current through 4.7k resistor is (in mA)");
+disp(V3k,"the voltage across 3k resistor is (in V)");
diff --git a/3673/CH1/EX1.a.10/Example_a_1_10.sce b/3673/CH1/EX1.a.10/Example_a_1_10.sce new file mode 100644 index 000000000..765699bbb --- /dev/null +++ b/3673/CH1/EX1.a.10/Example_a_1_10.sce @@ -0,0 +1,11 @@ +//Example 1_10 page no:28
+clc;
+It=4;
+Rt=7;
+R2=2;
+R10=10;
+I10=It*(Rt/(Rt+R10));
+disp(I10,"the current flowing through 10 ohm resistor is (in A)");
+I5=It*(R10/(R10+Rt));
+V=I5*R2;//the voltage across 2 ohm resistor Vs
+disp(V,"the voltage across 2 ohm resistor Vs is (in V)");
diff --git a/3673/CH1/EX1.a.11/Example_a_1_11.sce b/3673/CH1/EX1.a.11/Example_a_1_11.sce new file mode 100644 index 000000000..4af08c460 --- /dev/null +++ b/3673/CH1/EX1.a.11/Example_a_1_11.sce @@ -0,0 +1,15 @@ +//Example 1_11 page no:28
+clc;
+R1=5;
+R2=25;
+R3=10;
+V=50;
+It=6;
+//current in branch ADB
+I30=V/(R2+R1);
+disp(I30,"the current in branch ADB is (in A)");
+//current in branch ACB
+I10=It-I30;
+disp(I10,"the current in branch ACB is (in A)");
+R=(V/I10)-R3;
+disp(R,"the resistance R is (in ohm)");
diff --git a/3673/CH1/EX1.a.12/Example_a_1_12.sce b/3673/CH1/EX1.a.12/Example_a_1_12.sce new file mode 100644 index 000000000..325b46cf5 --- /dev/null +++ b/3673/CH1/EX1.a.12/Example_a_1_12.sce @@ -0,0 +1,19 @@ +//Example 1_12 page no:29
+clc;
+V=10
+R1=3;
+R2=6;
+R3=5;
+R4=5;
+R5=4;
+R6=2.5;
+R7=2;
+R8=1/((1/R3)+(1/R4));//calculating the resistance values
+R9=1/((1/R2)+(1/R7));
+R10=1/((1/R6)+(1/R8));
+R11=R1+R9;
+R12=R5+R10;
+Rt=1/((1/R11)+(1/R12));
+I=V/Rt;
+P=V*I;//calculating the power delivered by the source
+disp(P,"the power delivered by the source (in W)");
diff --git a/3673/CH1/EX1.a.13/Example_a_1_13.sce b/3673/CH1/EX1.a.13/Example_a_1_13.sce new file mode 100644 index 000000000..edae37750 --- /dev/null +++ b/3673/CH1/EX1.a.13/Example_a_1_13.sce @@ -0,0 +1,9 @@ +//Example 1_13 page no:30
+clc;
+I1=10;
+I2=15'
+R1=20;
+R2=10;
+R3=5;
+V=(I1+I2)/((1/20)+(1/10)+(1/5));//voltage calculation
+disp(V,"the voltage across 10 ohm resistor is (in V)");
diff --git a/3673/CH1/EX1.a.14/Example_a_1_14.sce b/3673/CH1/EX1.a.14/Example_a_1_14.sce new file mode 100644 index 000000000..08cb4011a --- /dev/null +++ b/3673/CH1/EX1.a.14/Example_a_1_14.sce @@ -0,0 +1,18 @@ +//Example 1_14 page no:31
+clc;
+I1=1;
+I2=5;
+Va=70;
+V=100;
+//calculating R1 and R2
+V5=5*60;
+Va=100-30;
+R2=(70-30)/I2;
+R1=(70-50)/I1;
+disp(R1,"the resistance R1 is (in ohm)");
+disp(R2,"the resistance R2 is (in ohm)");
+//calculating R2 when current in R1 is zero
+Va=50;
+I2=(100-Va)/5;
+R2=20/I2;
+disp(R2,"the resistance R2 when current flowing through R1 is zero (in ohm)");
diff --git a/3673/CH1/EX1.a.15/Example_a_1_15.sce b/3673/CH1/EX1.a.15/Example_a_1_15.sce new file mode 100644 index 000000000..ed1dcf75f --- /dev/null +++ b/3673/CH1/EX1.a.15/Example_a_1_15.sce @@ -0,0 +1,15 @@ +//Example 1_15 page no:32
+clc;
+I1=10;
+I2=5;
+R1=3;
+R2=2;
+R3=5;
+R4=10;
+R5=2;
+R6=1;
+R11=4.43;
+R22=2.67;
+Va=(I1-I2)/((1/R11)+(1/R22));
+Vout=Va;//here Vout is equal to Vout
+disp(Vout,"the output voltage Vout is (in V)");
diff --git a/3673/CH1/EX1.a.16/Example_a_1_16.sce b/3673/CH1/EX1.a.16/Example_a_1_16.sce new file mode 100644 index 000000000..ac51dd351 --- /dev/null +++ b/3673/CH1/EX1.a.16/Example_a_1_16.sce @@ -0,0 +1,25 @@ +//Example 1_16 page no:33
+clc;
+R1=5
+R2=6
+R3=3
+R4=3
+R5=10
+R6=6
+R7=2
+R8=4
+V=100;
+R9=1/((1/(R7+R8))+(1/R6));//calculating the resistances
+R10=1/((1/(R3+R4))+(1/R2));
+Rt=1/((1/13)+(1/8));
+It=V/Rt;
+I8=20.2*(13/(13+8));
+I13=20.2*(8/(13+8));
+I5=I8;
+I10=I13;
+I4=3.845;
+I3=6.25;
+Va=I3*3;
+Vb=I4*4;
+Vab=Va-Vb;//voltage calculation
+disp(Vab,"the voltage Vab is (in V)");
diff --git a/3673/CH1/EX1.a.17/Example_a_1_17.sce b/3673/CH1/EX1.a.17/Example_a_1_17.sce new file mode 100644 index 000000000..77d92666b --- /dev/null +++ b/3673/CH1/EX1.a.17/Example_a_1_17.sce @@ -0,0 +1,9 @@ +//Example 1_17 page no:34
+clc;
+Va=1;//here Va is assumed to be one hence it will canceled out in calculation
+R=1;//here R is assumed to be one it will be assigned correct value on the flow of calculation
+V10=Va*(10/15);
+Vr=Va*R/(20+R);
+R=(10/15)*(20*3);//here 3 is included to show that R is canceled in calculation
+//hence 3R-2R=R for simplicity we introduced 3 in calculation
+disp(R,"the resistance R in the circuit is(in ohm)");
diff --git a/3673/CH1/EX1.a.18/Example_a_1_18.sce b/3673/CH1/EX1.a.18/Example_a_1_18.sce new file mode 100644 index 000000000..461890252 --- /dev/null +++ b/3673/CH1/EX1.a.18/Example_a_1_18.sce @@ -0,0 +1,22 @@ +//Example 1_18 page no:34
+clc;
+V=-10;
+Iv=2;
+P10v=V*Iv;
+disp(P10v,"the power absorbed across 10V is (in W)");
+V1=24;
+I1=2;
+P1=V1*I1;
+disp(P1,"the power absorbed at R1 is (in W)");
+V2=14;
+I2=7;
+P2=V2*I2;
+disp(P2,"the power absorbed at R2 is (in W)");
+V3=-7;
+I3=9;
+P3=V3*I3;
+disp(P3,"the power absorbed at R3 is (in W)");
+V=1*-7;
+I=9;
+P=V*I;
+disp(P,"the power absorbed by dependent voltage source is (in W)");
diff --git a/3673/CH1/EX1.a.19/Example_a_1_19.sce b/3673/CH1/EX1.a.19/Example_a_1_19.sce new file mode 100644 index 000000000..bc42bf133 --- /dev/null +++ b/3673/CH1/EX1.a.19/Example_a_1_19.sce @@ -0,0 +1,22 @@ +//Example 1_19 page no:35
+clc;
+V1=-4;
+I1=2;
+P1=V1*I1;
+disp(P1,"the power absorbed by 2A current source is (in W)");
+V2=-4;
+I2=1;
+P2=V2*I2;
+disp(P2,"the power absorbed by 4V voltage source is (in W)");
+V3=2;
+I3=3;
+P3=V3*I3;
+disp(P3,"the power absorbed by 2V voltage source is (in W)");
+V4=7;
+I4=2;
+P4=V4*I4;
+disp(P4,"the power absorbed by 7A current source is (in W)");
+V5=2;
+I5=2;
+P5=-2*V5*I5;
+disp(P5,"the power absorbed by 2xi independent current source is (in W)");
diff --git a/3673/CH1/EX1.a.2/Example_a_1_2.sce b/3673/CH1/EX1.a.2/Example_a_1_2.sce new file mode 100644 index 000000000..958bcd2d0 --- /dev/null +++ b/3673/CH1/EX1.a.2/Example_a_1_2.sce @@ -0,0 +1,12 @@ +//Example 1_2 page no:21
+clc;
+I8=20/8;
+I15=(2.5*11)/(11+28);
+V28=0.71*28;
+V19=2.5*19;
+emf=V28+V19;//calculating the emf
+disp(I8,"the current flowing through 8 ohm resistor is (in A)");
+disp(I15,"the current flowing through 15 ohm resistor is (in A)");
+disp(V28,"the voltage across 28 ohm resistor is (in V)");
+disp(V19,"the voltage across 19 ohm resistor is (in V)");
+disp(emf,"the emf of the battery is (in V)");
diff --git a/3673/CH1/EX1.a.20/Example_a_1_20.sce b/3673/CH1/EX1.a.20/Example_a_1_20.sce new file mode 100644 index 000000000..c1799b048 --- /dev/null +++ b/3673/CH1/EX1.a.20/Example_a_1_20.sce @@ -0,0 +1,21 @@ +//Example 1_20 page no:35
+clc;
+V=12;
+R=1;
+R=4;
+R=3;
+I=6;
+P=-V*I;
+disp(P,"the power absorbed by 12V source is (in W)");
+V1=6;
+P1=V1*I;
+disp(P1,"the power absorbed by 1ohm resistor is (in W)");
+V2=-2*3*6;
+P2=V2*I;
+disp(P2,"the power absorbed by 2v1 independent voltage source is (in W)");
+V3=18;
+P3=V3*I;
+disp(P3,"the power absorbed by 3ohm resistor is (in W)");
+V=4*6;
+P4=V*I;
+disp(P4,"the power absorbed by 4ohm resistor is (in W)");
diff --git a/3673/CH1/EX1.a.21/Example_a_1_21.sce b/3673/CH1/EX1.a.21/Example_a_1_21.sce new file mode 100644 index 000000000..3e27b887b --- /dev/null +++ b/3673/CH1/EX1.a.21/Example_a_1_21.sce @@ -0,0 +1,18 @@ +//Example 1_21 page no:36
+clc;
+R1=3;
+R2=2;
+V=12/((1/3)+1+(1/2));
+i3=V/R1;
+i2=-V/R2;
+P3=V*i3;
+disp(P3,"the power absorbed by P3 is (in W)");
+P12=-V*12;
+disp(P12,"the power absorbed by 12A current source is (in W)");
+P2i=-V*2*i2;
+disp(P2i,"the power absorbed by 2i dependent current source is (in W)");
+P2=-V*i2;
+disp(P2,"the power absorbed by 2 ohm resistor is (in W)");
+//the result displayed varies slightly with the text book hence in text book
+//V,i3,i2 values are rounded off and they produce approximated result
+//here the values are used directly without approxiamtion
diff --git a/3673/CH1/EX1.a.3/Example_a_1_3.sce b/3673/CH1/EX1.a.3/Example_a_1_3.sce new file mode 100644 index 000000000..db8067a97 --- /dev/null +++ b/3673/CH1/EX1.a.3/Example_a_1_3.sce @@ -0,0 +1,14 @@ +//Example 1_3 page no:22
+clc;
+V=10;
+R1=1;
+I1=V/R1;
+I2=V/(2+((7*5)/(7+5)));
+It=I1+I2;//calculating the total current
+V2=2*2;
+I5=(2*7)/(5+7);//calculating the current flowing through 5 ohm resistor
+disp(I1,"the current flowing through 1 ohm resistor is (in A)");
+disp(I2,"the current flowing through series parallel branch between terminals A and C is (in A)");
+disp(It,"the total current is (in A)");
+disp(V2,"the voltage across 2 ohm resistor is (in V)");
+disp(I5,"the current flowing through 5 ohm resistor is (in A)");
diff --git a/3673/CH1/EX1.a.4/Example_a_1_4.sce b/3673/CH1/EX1.a.4/Example_a_1_4.sce new file mode 100644 index 000000000..d0cbe6d93 --- /dev/null +++ b/3673/CH1/EX1.a.4/Example_a_1_4.sce @@ -0,0 +1,16 @@ +//Example 1_4 page no:22
+clc;
+I3=2;
+I6=6;
+V2=12;
+V3=6;
+V=20
+I4=I3+I6;
+V4=4*I4;
+V=V4-V2;
+Vs=V4-V;
+Vin=-(30-V-V3);
+P4=V4*I6;//dependent power source
+disp(Vs,"the voltage Vs is (in V)");
+disp(Vin,"the voltage Vin is (in V)");
+disp(P4,"the power provided by dependent source is (in W)");
diff --git a/3673/CH1/EX1.a.5/Example_a_1_5.sce b/3673/CH1/EX1.a.5/Example_a_1_5.sce new file mode 100644 index 000000000..09f9204f6 --- /dev/null +++ b/3673/CH1/EX1.a.5/Example_a_1_5.sce @@ -0,0 +1,15 @@ +//Example 1_5 page no:23
+clc;
+//applying kirchoff law
+V=-20*10^-3/(-4.25*10^-3);
+P3=66.55;
+P20=-20*V;
+P4=V*V/(4);
+P=V*V/1;
+disp(P3,"the power absorbed by 3i current source is (in mW)");
+disp(P20,"the power absorbed by 20mA current source is (in mW)");
+disp(P4,"the power absorbed by 4 kilo ohm current source is (in mW)");
+disp(P,"the power absorbed by 1 kilo ohm current source is (in mW)");
+//in text book V value is rounded off but here the value is not rounded and used directly
+//so power result varies slightly
+//in text book V is rounded to 4.71 V
diff --git a/3673/CH1/EX1.a.6/Example_a_1_6.sce b/3673/CH1/EX1.a.6/Example_a_1_6.sce new file mode 100644 index 000000000..90e3b7edd --- /dev/null +++ b/3673/CH1/EX1.a.6/Example_a_1_6.sce @@ -0,0 +1,11 @@ +//Example 1_6 page no:24
+clc;
+Vs=30;
+R1=5;
+R2=4;
+R3=2;
+R4=4;
+R5=1/((1/(R2))+(1/(R3))+(1/(R4)));
+Rt=R1+R5;
+It=Vs/Rt;//calculating the total current
+disp(It,"the total current is (in A)");
diff --git a/3673/CH1/EX1.a.7/Example_a_1_7.sce b/3673/CH1/EX1.a.7/Example_a_1_7.sce new file mode 100644 index 000000000..acbd760ca --- /dev/null +++ b/3673/CH1/EX1.a.7/Example_a_1_7.sce @@ -0,0 +1,14 @@ +//Example 1_7 page no:25
+clc;
+I5=4;
+I6=1;
+V=30;
+R6=6;
+V6=24;
+V10=50;
+I10=I5+I6;
+Vc=-V6;
+V1=V10-Vc;
+disp(I10,"the current through 10 ohm resistance is (in A)");
+Vs=I10-V+Vc;//calculating the source voltage
+disp(Vs,"the source voltage Vs is (in V)");
diff --git a/3673/CH1/EX1.a.8/Example_a_1_8.sce b/3673/CH1/EX1.a.8/Example_a_1_8.sce new file mode 100644 index 000000000..894a1218a --- /dev/null +++ b/3673/CH1/EX1.a.8/Example_a_1_8.sce @@ -0,0 +1,14 @@ +//Example 1_8 page no:25
+clc;
+R1=6;
+R2=4;
+R3=10;
+V1=6;
+V2=12;
+I1=V1/(R1+R2);
+I2=V2/(R2+R3);
+Va=I1*R2;
+Vb=I2*R2;
+Vab=-Va+V2+Vb;
+disp(Vab,"the voltage across a and b is (in V)");
+//value of I2 is rounded off in text book so result varies slightly
diff --git a/3673/CH1/EX1.a.9/Example_a_1_9.sce b/3673/CH1/EX1.a.9/Example_a_1_9.sce new file mode 100644 index 000000000..112a119e2 --- /dev/null +++ b/3673/CH1/EX1.a.9/Example_a_1_9.sce @@ -0,0 +1,21 @@ +//Example 1_9 page no:26
+clc;
+V=30;
+R1=2;
+R2=2;
+R3=2;
+R4=2;
+R5=1;
+R6=1;
+R7=2;
+R8=2;
+R9=4;
+R10=R2+R3;
+R11=R4+R3;
+R12=1/((1/R10)+(1/R9));
+R13=1/((1/R11)+(1/R8));
+R14=1/((1/(R12+R13))+(1/R7));
+Rt=1/((1/(R14+R6))+(1/R1));
+I=V/Rt;
+disp(I,"the current delivered by the sourve is (in A)");
+//in text book Rt value is rounded to 1.05 here the value is not rounded so result varies slightly
|