diff options
Diffstat (limited to '623/CH1/EX1.1.26/U1_C1_26.sce')
-rwxr-xr-x | 623/CH1/EX1.1.26/U1_C1_26.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/623/CH1/EX1.1.26/U1_C1_26.sce b/623/CH1/EX1.1.26/U1_C1_26.sce new file mode 100755 index 000000000..a61460820 --- /dev/null +++ b/623/CH1/EX1.1.26/U1_C1_26.sce @@ -0,0 +1,12 @@ +//variable initialization
+RestEnergy=0.51 //rest energy of electron (Mev)
+T=1 //potential difference i.e. kinetic energy (Mev)
+c=3*10^8; //speed of light (meter/second)
+
+//calculation of speed of electron
+Beta=(1-(RestEnergy/(T+RestEnergy))^2)^(1/2); //calculation of Beta
+v=Beta*c; //speed of electron (meter/second)
+
+printf("\n\tThe speed of the electron = %.2e meter/second",v);
+
+//Note: In the book answer of Beta is slightly wrong
|