summaryrefslogtreecommitdiff
path: root/446/CH2/EX2.14
diff options
context:
space:
mode:
Diffstat (limited to '446/CH2/EX2.14')
-rwxr-xr-x446/CH2/EX2.14/2_14.sce8
-rwxr-xr-x446/CH2/EX2.14/2_14.txt4
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