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 /767/CH5/EX5.2.1 | |
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 '767/CH5/EX5.2.1')
-rwxr-xr-x | 767/CH5/EX5.2.1/Ch05Exa5_2_1.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/767/CH5/EX5.2.1/Ch05Exa5_2_1.sci b/767/CH5/EX5.2.1/Ch05Exa5_2_1.sci new file mode 100755 index 000000000..5e3feaa07 --- /dev/null +++ b/767/CH5/EX5.2.1/Ch05Exa5_2_1.sci @@ -0,0 +1,11 @@ +// Scilab code Exa5.2.1: To calculate the energy and no. of collision required to stop collision : P.no. 223 (2011)
+m = 511; // Mass of electron, KeV
+M = 938*10^3; // Mass of incident charged particle, KeV
+E = 10*10^3; // Energy of proton, KeV
+E_l = 4*m*E/M; // Energy lost during collison, KeV
+n = E/E_l; // Number of collisions,
+N = round(n)
+printf("\n The energy lost during collision = %5.2f KeV \n Number of collision required = %d collisions",E_l, N )
+// Result
+// The energy lost during collision = 21.79 KeV
+// Number of collision required = 459 collisions
\ No newline at end of file |