From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 767/CH5/EX5.2.1/Ch05Exa5_2_1.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 767/CH5/EX5.2.1/Ch05Exa5_2_1.sci (limited to '767/CH5/EX5.2.1') 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 -- cgit