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 --- 1871/CH7/EX7.5/Ch07Ex5.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1871/CH7/EX7.5/Ch07Ex5.sce (limited to '1871/CH7/EX7.5/Ch07Ex5.sce') diff --git a/1871/CH7/EX7.5/Ch07Ex5.sce b/1871/CH7/EX7.5/Ch07Ex5.sce new file mode 100755 index 000000000..330e83e12 --- /dev/null +++ b/1871/CH7/EX7.5/Ch07Ex5.sce @@ -0,0 +1,14 @@ +// Scilab code Ex7.5: Pg:288 (2008) +clc;clear; +m = 3.34e-027; // Mass of deutron, gm +q = 1.6e-019; // Charge, coulomb +r = 0.2; // Radius of the path of deutron, meter +B = 1.5; // Magnetic field, weber per meter square +v = q*B*r/m; // velocity of the deutron, m/s +E = 1/2*m*v^2/1.6e-013; // Energy of the deutron, MeV +printf("\nThe velocity of deutron = %5.3e m/s ", v); +printf("\nThe energy of deutron = %5.3f MeV ", E); + +// Result +// The velocity of deutron = 1.437e+007 m/s +// The energy of deutron = 2.156 MeV \ No newline at end of file -- cgit