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 /980/CH5 | |
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 '980/CH5')
-rwxr-xr-x | 980/CH5/EX5.1/5_1.sce | 7 | ||||
-rwxr-xr-x | 980/CH5/EX5.10/5_10.sce | 17 | ||||
-rwxr-xr-x | 980/CH5/EX5.11/5_11.sce | 13 | ||||
-rwxr-xr-x | 980/CH5/EX5.2/5_2.sce | 11 |
4 files changed, 48 insertions, 0 deletions
diff --git a/980/CH5/EX5.1/5_1.sce b/980/CH5/EX5.1/5_1.sce new file mode 100755 index 000000000..b51010a00 --- /dev/null +++ b/980/CH5/EX5.1/5_1.sce @@ -0,0 +1,7 @@ +clc;
+clear;
+format('v',11);
+Q=1*10^-9;
+disp("path of the integration is along a line parallel to the x-axis as y and z are fixed with y=z=1.");
+W=-Q*integrate('x','x',1,0); //putting y=z=1.
+disp(W,"work done(in joule)=");
diff --git a/980/CH5/EX5.10/5_10.sce b/980/CH5/EX5.10/5_10.sce new file mode 100755 index 000000000..7b58e37ca --- /dev/null +++ b/980/CH5/EX5.10/5_10.sce @@ -0,0 +1,17 @@ +clc;
+clear;
+format('v',11);
+vin=2*10^7;
+q=3*10^-6;
+rin=[1 0 0];
+mod_rin=sqrt(rin(1)^2+rin(2)^2+rin(3)^2);
+Vin=q/(4*3.14*8.85*10^-12*mod_rin); //potential at[1 0 0] due to point charge.
+Pin=-1.6*10^-19*Vin; //initial potential energy.
+Kin=(9.1094*10^-31*vin^2)/2; //initial kinetic energy considering me=9.1094*10^-31kg.
+Etin=Pin+Kin; //initial total energy'.
+disp("As electron moves it slows down due to attraction to the charge at the origine and ultimately comes to rest.");
+disp("computing rf","hence Etin=Etf=Pf","Kf=0","final kinetic enegy is zero");
+Pf=Etin;
+rf=-1.6*10^-19*q/(4*3.14*8.85*10^-12*Pf);
+disp(rf,"rf(in meter)=");
+disp("from this position the electron reverses motion and begins moving towards the charge at the origin.");
diff --git a/980/CH5/EX5.11/5_11.sce b/980/CH5/EX5.11/5_11.sce new file mode 100755 index 000000000..183fcb784 --- /dev/null +++ b/980/CH5/EX5.11/5_11.sce @@ -0,0 +1,13 @@ +clc;
+clear;
+format('e',11);
+vin=2*10^7;
+q=3*10^-6;
+rin=[1 0 0];
+mod_rin=sqrt(rin(1)^2+rin(2)^2+rin(3)^2);
+Vin=q/(4*3.14*8.85*10^-12*mod_rin); //potential at[1 0 0] due to point charge.
+Pin=-1.6*10^-19*Vin; //initial potential energy.
+disp("Hence Etin must be equal to zero","When the electron reaches at infinite distance Pf=Kf=0.");
+vin=sqrt(-Pin*2/(9.1094*10^-31)); //considering me=9.1094*10^-31kg.
+disp(vin,"vin(in meter/sec)=");
+disp("Beyond this velocity the electron escapes.");
diff --git a/980/CH5/EX5.2/5_2.sce b/980/CH5/EX5.2/5_2.sce new file mode 100755 index 000000000..4ad49442d --- /dev/null +++ b/980/CH5/EX5.2/5_2.sce @@ -0,0 +1,11 @@ +clc;
+clear;
+format('e',11)
+Q=1*10^-9;
+r0=[3 5 6];
+r1=[0 0 0];
+R01=r1-r0;
+disp("The parametric eqution of the straight line joining these two points:")
+disp("z=6(1-t)","y=5(1-t)","x=3(1-t)"); //using r=r0+tR01.
+W=1305*Q*integrate('(1-t)^3','t',0,1); //using parametric equation.
+disp(W,"work done(in joule)=");
|