summaryrefslogtreecommitdiff
path: root/3717/CH21
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3717/CH21
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3717/CH21')
-rw-r--r--3717/CH21/EX21.1/Ex21_1.sce11
-rw-r--r--3717/CH21/EX21.2/Ex21_2.sce12
2 files changed, 23 insertions, 0 deletions
diff --git a/3717/CH21/EX21.1/Ex21_1.sce b/3717/CH21/EX21.1/Ex21_1.sce
new file mode 100644
index 000000000..073d804aa
--- /dev/null
+++ b/3717/CH21/EX21.1/Ex21_1.sce
@@ -0,0 +1,11 @@
+// Ex21_1 Page:399 (2014)
+clc;clear;
+m_pi = 140; // Mass of a pion, MeV
+m_p = 938.3; // Mass of a proton, MeV
+m_K = 498; // Mass of a kaon, MeV
+m_lambda = 1116; // Mass of lambda hyperon, MeV
+Q = m_pi + m_p - m_K - m_lambda;
+printf("\nThe Q-value of the reaction = %3d MeV", floor(Q));
+
+// Result
+// The Q-value of the reaction = -536 MeV
diff --git a/3717/CH21/EX21.2/Ex21_2.sce b/3717/CH21/EX21.2/Ex21_2.sce
new file mode 100644
index 000000000..31f2c70fa
--- /dev/null
+++ b/3717/CH21/EX21.2/Ex21_2.sce
@@ -0,0 +1,12 @@
+// Ex21_2 Page:399 (2014)
+clc;clear;
+m_pi_minus = 139.6; // Mass of a pion, MeV
+m_p = 938.3; // Mass of a proton, MeV
+m_n = 939.6; // Mass of a neutron, MeV
+K_n = 0.6; // The kinetic energy of the neutron, MeV
+E_pi0 = m_p + m_pi_minus - m_n - K_n; // Mass of neutral pion, MeV
+E_pi0_r = sqrt(E_pi0^2 - (m_n + K_n)^2 + m_n^2); // Relativistic mass of neutral pion, MeV
+printf("\nThe relativistic mass of neutral pion = %5.1f MeV", E_pi0_r);
+
+// Result
+// The relativistic mass of neutral pion = 133.5 MeV