summaryrefslogtreecommitdiff
path: root/2234/CH4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2234/CH4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2234/CH4')
-rwxr-xr-x2234/CH4/EX4.1/ex4_1.sce5
-rwxr-xr-x2234/CH4/EX4.10/ex4_10.sce8
-rwxr-xr-x2234/CH4/EX4.11/ex4_11.sce6
-rwxr-xr-x2234/CH4/EX4.12/ex4_12.sce7
-rwxr-xr-x2234/CH4/EX4.13/ex4_13.sce6
-rwxr-xr-x2234/CH4/EX4.14/ex4_14.sce6
-rwxr-xr-x2234/CH4/EX4.15/ex4_15.sce9
-rwxr-xr-x2234/CH4/EX4.16/ex4_16.sce8
-rwxr-xr-x2234/CH4/EX4.17/ex4_17.sce5
-rwxr-xr-x2234/CH4/EX4.18/ex4_18.sce4
-rwxr-xr-x2234/CH4/EX4.19/ex4_19.sce6
-rwxr-xr-x2234/CH4/EX4.2/ex4_2.sce4
-rwxr-xr-x2234/CH4/EX4.20/ex4_20.sce5
-rwxr-xr-x2234/CH4/EX4.21/ex4_21.sce7
-rwxr-xr-x2234/CH4/EX4.22/ex4_22.sce5
-rwxr-xr-x2234/CH4/EX4.23/ex4_23.sce11
-rwxr-xr-x2234/CH4/EX4.24/ex4_24.sce5
-rwxr-xr-x2234/CH4/EX4.25/ex4_25.sce9
-rwxr-xr-x2234/CH4/EX4.26/ex4_26.sce10
-rwxr-xr-x2234/CH4/EX4.27/ex4_27.sce9
-rwxr-xr-x2234/CH4/EX4.3/ex4_3.sce6
-rwxr-xr-x2234/CH4/EX4.4/ex4_4.sce6
-rwxr-xr-x2234/CH4/EX4.5/ex4_5.sce8
-rwxr-xr-x2234/CH4/EX4.6/ex4_6.sce6
-rwxr-xr-x2234/CH4/EX4.7/ex4_7.sce6
-rwxr-xr-x2234/CH4/EX4.8/ex4_8.sce6
-rwxr-xr-x2234/CH4/EX4.9/ex4_9.sce10
27 files changed, 183 insertions, 0 deletions
diff --git a/2234/CH4/EX4.1/ex4_1.sce b/2234/CH4/EX4.1/ex4_1.sce
new file mode 100755
index 000000000..bb182a707
--- /dev/null
+++ b/2234/CH4/EX4.1/ex4_1.sce
@@ -0,0 +1,5 @@
+clc;
+q=1; //no of coulomb
+e=1.6*10^-19; //charge on an electron
+n=(q/e); //calculating no of electrons
+disp(n,"No of electrons = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.10/ex4_10.sce b/2234/CH4/EX4.10/ex4_10.sce
new file mode 100755
index 000000000..dc6fb3470
--- /dev/null
+++ b/2234/CH4/EX4.10/ex4_10.sce
@@ -0,0 +1,8 @@
+clc;
+q1=(2*10^-8); //charge in coulomb
+q2=(-2*10^-8); //charge in coulomb
+q3=(3*10^-8); //charge in coulomb
+q4=(6*10^-8); //charge in coulomb
+s=1; //side in m
+V=(9*10^9)*(1/s)*(q1+q2+q3+q4); //calculating voltage
+disp(V,"Voltage in Volts = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.11/ex4_11.sce b/2234/CH4/EX4.11/ex4_11.sce
new file mode 100755
index 000000000..fcc28d206
--- /dev/null
+++ b/2234/CH4/EX4.11/ex4_11.sce
@@ -0,0 +1,6 @@
+clc;
+eo=8.85*10^-12; //constant
+q=2*10^-6; //charge in coulomb
+l=9; //length in cm
+fi=(q/eo); //calcualting flux in (N m square)/c
+disp(fi,"Flux through the surface in (N m square)/c = "); //displaying result
diff --git a/2234/CH4/EX4.12/ex4_12.sce b/2234/CH4/EX4.12/ex4_12.sce
new file mode 100755
index 000000000..72169bd6d
--- /dev/null
+++ b/2234/CH4/EX4.12/ex4_12.sce
@@ -0,0 +1,7 @@
+clc;
+eo=8.85*10^-12; //constant
+r=1.2; //r in m
+t=80*10^-6; //surface sharge density in c/m square
+q=t*4*(%pi)*(r^2); //calculating charge
+fi=q/eo; //calculating flux
+disp(fi,"Flux in N m square/c = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.13/ex4_13.sce b/2234/CH4/EX4.13/ex4_13.sce
new file mode 100755
index 000000000..6723d103a
--- /dev/null
+++ b/2234/CH4/EX4.13/ex4_13.sce
@@ -0,0 +1,6 @@
+clc;
+eo=8.85*10^-12; //constant
+E=9*10^4; //Electric field in N/C
+r=2*10^-2; //r in m
+L=2*(%pi)*E*eo*r; //calculating linear charge density
+disp(L,"Linear charge density per cm = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.14/ex4_14.sce b/2234/CH4/EX4.14/ex4_14.sce
new file mode 100755
index 000000000..50439aa23
--- /dev/null
+++ b/2234/CH4/EX4.14/ex4_14.sce
@@ -0,0 +1,6 @@
+clc;
+o=17*10^-22; //surface charge density in cm^-2
+eo=8.85*10^-12; //constant
+E=o/eo; //calculating electric intensity in region III
+disp("Electric Intensity in regions I and II = 0"); //displaying result
+disp(E,"Electric Intensity in region III in N/C = "); //displaying result
diff --git a/2234/CH4/EX4.15/ex4_15.sce b/2234/CH4/EX4.15/ex4_15.sce
new file mode 100755
index 000000000..d66601d31
--- /dev/null
+++ b/2234/CH4/EX4.15/ex4_15.sce
@@ -0,0 +1,9 @@
+clc;
+r=0.05; // in m
+eo=8.85*10^-12; //constant
+q=10^-9; //charge at point P in Coulomb
+E=q/(4*(%pi)*eo*(r^2)); //calculating electric field
+disp(E,"Electric field in v/m = "); //displaying result
+r1=0.2; //in m
+V1=q/(4*(%pi)*eo*r1); //calculating potential difference
+disp(V1," Potential difference between two points in Volt = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.16/ex4_16.sce b/2234/CH4/EX4.16/ex4_16.sce
new file mode 100755
index 000000000..1487b6f78
--- /dev/null
+++ b/2234/CH4/EX4.16/ex4_16.sce
@@ -0,0 +1,8 @@
+clc;
+eo=8.85*10^-12; //constant
+o=80*10^-6; //surface charge density in c/ square
+r=1.2; //in m
+q=o*(%pi)*(r^2); //calculating charge in Coulomb
+fi=q/eo; //calculating electric flux
+disp(q,"Charge in Coulomb = "); //displaying result
+disp(fi,"Electric flux in N m square/c = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.17/ex4_17.sce b/2234/CH4/EX4.17/ex4_17.sce
new file mode 100755
index 000000000..62affab72
--- /dev/null
+++ b/2234/CH4/EX4.17/ex4_17.sce
@@ -0,0 +1,5 @@
+clc;
+V=250; //potential difference in Volt
+C=10^-11; //capacitance in farad
+q=C*V; //calculating charge
+disp(q,"Charge in Coulomb = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.18/ex4_18.sce b/2234/CH4/EX4.18/ex4_18.sce
new file mode 100755
index 000000000..9f21912df
--- /dev/null
+++ b/2234/CH4/EX4.18/ex4_18.sce
@@ -0,0 +1,4 @@
+clc;
+r=6.4*10^6; //in m
+C=r/(9*10^9); //calculating charge
+disp(C,"Capacitance in Farad = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.19/ex4_19.sce b/2234/CH4/EX4.19/ex4_19.sce
new file mode 100755
index 000000000..6bffa657e
--- /dev/null
+++ b/2234/CH4/EX4.19/ex4_19.sce
@@ -0,0 +1,6 @@
+clc;
+C=2; //capacitance in Farad
+d=0.5*10^-2; //distance in m
+eo=8.85*10^-12; //constant
+A=(C*d)/(eo); //calculating area
+disp(A,"Area in m square = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.2/ex4_2.sce b/2234/CH4/EX4.2/ex4_2.sce
new file mode 100755
index 000000000..edcd7e904
--- /dev/null
+++ b/2234/CH4/EX4.2/ex4_2.sce
@@ -0,0 +1,4 @@
+clc;
+F=4.5*9.8; //in Newton
+q=sqrt(((0.03^2)*4.5*9.8)/(9*10^9)); //calculating q using F=(1/4*3.14*eo)*((q1*q2)/(r^2))
+disp(q,"Charge in coulomb = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.20/ex4_20.sce b/2234/CH4/EX4.20/ex4_20.sce
new file mode 100755
index 000000000..69e49279a
--- /dev/null
+++ b/2234/CH4/EX4.20/ex4_20.sce
@@ -0,0 +1,5 @@
+clc;
+A=0.02; //area in m square
+r=0.5; //r in m
+d=(A/(4*(%pi)*r)); //calculating distance
+disp(d,"Distance between the plates in m = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.21/ex4_21.sce b/2234/CH4/EX4.21/ex4_21.sce
new file mode 100755
index 000000000..b61d5e90d
--- /dev/null
+++ b/2234/CH4/EX4.21/ex4_21.sce
@@ -0,0 +1,7 @@
+clc;
+eo=8.85*10^-12; //constant
+A=1; //area in m square
+d=2*10^-3; //r in m
+K=4; //constant
+C=(K*eo*A)/d; //calculating capacitance
+disp(C,"Capacitance in Farad = = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.22/ex4_22.sce b/2234/CH4/EX4.22/ex4_22.sce
new file mode 100755
index 000000000..68ff9b846
--- /dev/null
+++ b/2234/CH4/EX4.22/ex4_22.sce
@@ -0,0 +1,5 @@
+clc;
+cm=10*10^-6; //capacitance in Farad
+K=2; //constant
+co=cm/K; //calculating co
+disp(co,"capacity of capacitor with air between the plates in Farad = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.23/ex4_23.sce b/2234/CH4/EX4.23/ex4_23.sce
new file mode 100755
index 000000000..f2e9661e3
--- /dev/null
+++ b/2234/CH4/EX4.23/ex4_23.sce
@@ -0,0 +1,11 @@
+clc;
+v=100; //v in volt
+c1=8*10^-6; //capacitance in Farad
+c2=12*10^-6; //capacitance in Farad
+c3=24*10^-6; //capacitance in Farad
+cs=4/(10^6); //calculating series capacitance
+cp=(c1+c2+c3); //calculating parallel capacitance
+disp(cs,"Equivalent Series capacitance in farad = "); //displaying result
+disp(cp,"Equivalent parallel capacitance in farad = "); //displaying result
+qs=cs*v; //calculating charge
+disp(qs,"charge on plate in Coulomb = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.24/ex4_24.sce b/2234/CH4/EX4.24/ex4_24.sce
new file mode 100755
index 000000000..be889d514
--- /dev/null
+++ b/2234/CH4/EX4.24/ex4_24.sce
@@ -0,0 +1,5 @@
+clc;
+C=9*10^-10; //capacitance in farad
+V=100; //in volt
+U=(1/2)*(C*(V^2)); //calculating energy stored
+disp(U,"Energy stored in Joule = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.25/ex4_25.sce b/2234/CH4/EX4.25/ex4_25.sce
new file mode 100755
index 000000000..c0006b4c2
--- /dev/null
+++ b/2234/CH4/EX4.25/ex4_25.sce
@@ -0,0 +1,9 @@
+clc;
+eo=8.85*10^-12; //constant
+A=90*10^-4; //area in m square
+d=2.5*10^-3; //distance in m
+V=400; //in volt
+C=(eo*A)/d; //calculating capacitance
+disp(C,"Capacitance in Farad = "); //displaying result
+W=(1/2)*(C*(V^2)); //calculating electrical energy stored
+disp(W,"Electrical Energy stored in capacitor in Joule = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.26/ex4_26.sce b/2234/CH4/EX4.26/ex4_26.sce
new file mode 100755
index 000000000..29191f977
--- /dev/null
+++ b/2234/CH4/EX4.26/ex4_26.sce
@@ -0,0 +1,10 @@
+clc;
+v=100; //v in volt
+c1=1*10^-6; //capacitance in Farad
+c2=2*10^-6; //capacitance in Farad
+c3=3*10^-6; //capacitance in Farad
+cs=6/11; //calculating series capacitance
+cp=(c1+c2+c3); //calculating parallel capacitance
+disp(cs,"Equivalent Series capacitance in farad = "); //displaying result
+disp(cp,"Equivalent parallel capacitance in farad = "); //displaying result
+disp("Therefore Cp=(11*Cs)"); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.27/ex4_27.sce b/2234/CH4/EX4.27/ex4_27.sce
new file mode 100755
index 000000000..db882e8d8
--- /dev/null
+++ b/2234/CH4/EX4.27/ex4_27.sce
@@ -0,0 +1,9 @@
+clc;
+eo=8.85*10^-12; //constant
+V=6; //v in volt
+A=25*10^-4; //area in m square
+d=10^-3; //distance in m
+q=(eo*A*V)/d; //calculating charge
+W=q*V; //calculating work done
+disp(q,"Charge through battery in Coulomb = "); //displaying result
+disp(W,"Work done by Battery in Joule = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.3/ex4_3.sce b/2234/CH4/EX4.3/ex4_3.sce
new file mode 100755
index 000000000..62c67f5ce
--- /dev/null
+++ b/2234/CH4/EX4.3/ex4_3.sce
@@ -0,0 +1,6 @@
+clc;
+q1=2*10^-7; //charge in C
+q2=3*10^-7; //charge in C
+r=30*10^-2; //r in m
+F=(9*10^9)*((q1*q2)/r^2); //calculating F
+disp(F,"Force in Newton = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.4/ex4_4.sce b/2234/CH4/EX4.4/ex4_4.sce
new file mode 100755
index 000000000..ad97f50b2
--- /dev/null
+++ b/2234/CH4/EX4.4/ex4_4.sce
@@ -0,0 +1,6 @@
+clc;
+q1=1; //charge in C
+q2=1; //charge in C
+r=1; //r in m
+F=(9*10^9)*((q1*q2)/r^2); //calculating F
+disp(F,"Force in Newton = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.5/ex4_5.sce b/2234/CH4/EX4.5/ex4_5.sce
new file mode 100755
index 000000000..39ac0cfcb
--- /dev/null
+++ b/2234/CH4/EX4.5/ex4_5.sce
@@ -0,0 +1,8 @@
+clc;
+m=9*10^-31; //mass of electron in kg
+q=-3.2*10^-7; //charge in C
+e=-1.6*10^-19; //charge on electron in C
+n=(q/e); //calculating n
+M=n*m; //calculating mass transfered
+disp(n,"no. of electrons = "); //displaying result
+disp(M,"Mass transfered to polythene in kg = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.6/ex4_6.sce b/2234/CH4/EX4.6/ex4_6.sce
new file mode 100755
index 000000000..7dd7447e5
--- /dev/null
+++ b/2234/CH4/EX4.6/ex4_6.sce
@@ -0,0 +1,6 @@
+clc;
+q1=1.6*10^-19; //charge in C
+q2=-1.6*10^-19; //charge in C
+r=10^-9; //r in m
+F=(9*10^9)*((q1*q2)/r^2); //calculating F
+disp(F,"Force in Newton = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.7/ex4_7.sce b/2234/CH4/EX4.7/ex4_7.sce
new file mode 100755
index 000000000..fcf8d7d3b
--- /dev/null
+++ b/2234/CH4/EX4.7/ex4_7.sce
@@ -0,0 +1,6 @@
+clc;
+Va=-10; //voltage in volts
+W=100; //work in Joule
+q=2; //charge in Coulomb
+v=(Va)+(W/q); //calculating v
+disp(v,"Voltage in Volts = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.8/ex4_8.sce b/2234/CH4/EX4.8/ex4_8.sce
new file mode 100755
index 000000000..2058f3019
--- /dev/null
+++ b/2234/CH4/EX4.8/ex4_8.sce
@@ -0,0 +1,6 @@
+clc;
+eo=(8.854*10^-12); //constant
+E=2; //magnitude of electric field in N/C
+r=0.5; //r in m
+q=E*4*(%pi)*(eo)*(r^2); //calculating charge
+disp(q,"Charge in Coulomb = "); //displaying result \ No newline at end of file
diff --git a/2234/CH4/EX4.9/ex4_9.sce b/2234/CH4/EX4.9/ex4_9.sce
new file mode 100755
index 000000000..b9dad6020
--- /dev/null
+++ b/2234/CH4/EX4.9/ex4_9.sce
@@ -0,0 +1,10 @@
+clc;
+e=-1.6*10^-19; //charge on electron in Coulomb
+q=20*10^-6; //charge in Coulomb
+r1=0.1; //r1 in m
+r2=0.05; //r2 in m
+Va=9*10^9*(q/r1); //calculating voltage at A
+Vb=9*10^9*(q/r2); //calculating voltage at B
+V=Va-Vb; //potential difference
+W=V*e; //calculating work done in joule
+disp(W,"Work done to take the electron from A to B in Joule = "); //displaying result \ No newline at end of file