diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2345/CH4')
-rwxr-xr-x | 2345/CH4/EX4.1/Ex4_1.sce | 14 | ||||
-rwxr-xr-x | 2345/CH4/EX4.2/Ex4_2.sce | 13 | ||||
-rwxr-xr-x | 2345/CH4/EX4.3/Ex4_3.sce | 13 | ||||
-rwxr-xr-x | 2345/CH4/EX4.4/Ex4_4.sce | 16 | ||||
-rwxr-xr-x | 2345/CH4/EX4.5/Ex4_5.sce | 19 | ||||
-rwxr-xr-x | 2345/CH4/EX4.6/Ex4_6.sce | 14 | ||||
-rwxr-xr-x | 2345/CH4/EX4.7/Ex4_7.sce | 11 |
7 files changed, 100 insertions, 0 deletions
diff --git a/2345/CH4/EX4.1/Ex4_1.sce b/2345/CH4/EX4.1/Ex4_1.sce new file mode 100755 index 000000000..a1fb9414d --- /dev/null +++ b/2345/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,14 @@ +//Finding capacitance +//Example 4.1(pg 110) +clc +clear +// Let C1 and C2 be unknown capacities +//C1+C2=0.16 +//(C1*C2)/(C1 + C2)=0.03 +// from the above 2 equations we get the following polynomial +s=poly(0,"s"); +p=s^2 -0.16*s +0.0048 +[c1]=roots(p) +c2=0.16-c1 +printf('Thus the capacitance of condensers is %3.2f microF \n ',c1) + diff --git a/2345/CH4/EX4.2/Ex4_2.sce b/2345/CH4/EX4.2/Ex4_2.sce new file mode 100755 index 000000000..eb3f0efe0 --- /dev/null +++ b/2345/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,13 @@ +//Finding capacitance
+//Example 4.2(pg 110)
+clc
+clear
+n=9;
+Ko=8.854*10^-12;
+K=5;
+A=12*10^-4;
+d=2*10^-4;
+
+C=(n-1)*Ko*K*A/d
+printf('Thus the capacitance is %e F',C);
+//The Answer in the Textbook has a calculation error, hence it doesn't match the answer here.
diff --git a/2345/CH4/EX4.3/Ex4_3.sce b/2345/CH4/EX4.3/Ex4_3.sce new file mode 100755 index 000000000..217d9fc51 --- /dev/null +++ b/2345/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,13 @@ +//Finding heat
+//Example 4.3(pg 110)
+clc
+clear
+C=10^-6
+V=10000
+//here C is capacitance and V voltage
+E=1/2*C*V^2
+//E is the energy stored in the capacitor
+// when the capacitor is discharged all this energy is dissipated as heat in the wire
+H=E/4.2
+//H is heat produced in calories since 4.2 Joules=1 calorie
+printf('Thus the heat produced is %3.4f calories',H)
diff --git a/2345/CH4/EX4.4/Ex4_4.sce b/2345/CH4/EX4.4/Ex4_4.sce new file mode 100755 index 000000000..91148253a --- /dev/null +++ b/2345/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,16 @@ +//Finding electric flux density
+//Example 4.4(pg 111)
+clc
+clear
+
+A=0.02;//surface area of plates in meter square
+d=0.001;//distance between the plates in meter
+C=4.5*10^-10;//capacitance of the capacitor in farad
+//for paralel plate condenser C=KoKA/d
+Ko=8.854*10^-12;
+//dielectric constant K is given by
+K=(C*d)/(Ko*A)
+V=15000;//volatage in volts
+Q=C*V// charge on condenser in columb
+D=Q/A// electric flux density in columb per meter square
+printf('Thus the electric flux density is %e C/(m^2)',D)
diff --git a/2345/CH4/EX4.5/Ex4_5.sce b/2345/CH4/EX4.5/Ex4_5.sce new file mode 100755 index 000000000..7903a3ffb --- /dev/null +++ b/2345/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,19 @@ +//Finding relative permittivity
+//Example 4.5(pg 111)
+clc
+clear
+//before inserting the second sheet
+d=0.003;//distacne between plates in m^2
+K1=6;// relative permittivity of air
+Ko=8.854*10^-12;
+// capacitance C1=Ko*K1*A/d in Farad
+//after inserting the second sheet
+d1=0.003;//thickness of first sheet in meter
+d2=0.005;//thickness of second sheet in meter
+//K2 is unknown
+//C2=Ko*A/(d1/K1 + d2/K2)
+// but given that C2=(1/3)*C1
+//from equations 1,2,3
+K2= (d2*K1)/(3*d-d1)
+// since Ko*A/(d1/K1 + d2/K2)=Ko*K1*A/3*d
+printf('Thus K2 is %3.4f',K2)
diff --git a/2345/CH4/EX4.6/Ex4_6.sce b/2345/CH4/EX4.6/Ex4_6.sce new file mode 100755 index 000000000..80fa89917 --- /dev/null +++ b/2345/CH4/EX4.6/Ex4_6.sce @@ -0,0 +1,14 @@ +//Finding force
+//Example 4.6(pg 113)
+clc
+clear
+q1=1;// in coulomb
+q2=1;// in coulomb
+Eo=8.854*10^-12;// in Farad per meter
+Er=1;
+d=1// in meter
+pi=3.14;
+// F is the force between 2 charges in NEWTONS
+F=(q1*q2)/(4*pi*Eo*Er*d^2)
+
+printf('Thus the force between 2 charges is %e',F)
diff --git a/2345/CH4/EX4.7/Ex4_7.sce b/2345/CH4/EX4.7/Ex4_7.sce new file mode 100755 index 000000000..fbba474bd --- /dev/null +++ b/2345/CH4/EX4.7/Ex4_7.sce @@ -0,0 +1,11 @@ +//Finding charge
+//Example 4.7(pg 114)
+clc
+clear
+//q1=q2=q
+pi=3.14;
+d=0.2;// in meters
+K=9*10^9;// here K=1/4*pi*Eo*Er constant
+F=9.81*10^-1;// in newtons or 10^-1 kgm
+q=sqrt((F*(d^2))/K)
+printf('Thus charge is %e in coulomb',q)
|