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 /446/CH2/EX2.14 | |
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 '446/CH2/EX2.14')
-rwxr-xr-x | 446/CH2/EX2.14/2_14.sce | 8 | ||||
-rwxr-xr-x | 446/CH2/EX2.14/2_14.txt | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/446/CH2/EX2.14/2_14.sce b/446/CH2/EX2.14/2_14.sce new file mode 100755 index 000000000..2e7af67d0 --- /dev/null +++ b/446/CH2/EX2.14/2_14.sce @@ -0,0 +1,8 @@ +clear
+clc
+disp('Exa-2.14');
+k=50;mc2=0.511*10^-3;c=3*10^8; // all the values of energy are in GeV and c is in SI units
+v=sqrt(1-(1/(1+(k/mc2))^2)); //speed of the electron in terms of c
+k=c-(v*c); //difference in velocities
+printf('Speed of the electron as a fraction of c is %.12f*10^-12.\n',v*10^12); // v=(v*10^12)*10^-12; so as to obtain desired accuracy in the result
+printf('The difference in velocities is %.1f cm/s.',k*10^2);
\ No newline at end of file diff --git a/446/CH2/EX2.14/2_14.txt b/446/CH2/EX2.14/2_14.txt new file mode 100755 index 000000000..c79feae33 --- /dev/null +++ b/446/CH2/EX2.14/2_14.txt @@ -0,0 +1,4 @@ +
+ Exa-2.14
+Speed of the electron as a fraction of c is 999999999947.776860000000*10^-12.
+The difference in velocities is 1.6 cm/s.
\ No newline at end of file |