diff options
Diffstat (limited to '767')
-rwxr-xr-x | 767/CH1/EX1.4.5/Ch1Exa1_4_5.sci | 28 | ||||
-rwxr-xr-x | 767/CH6/EX6.10.1/Ch06Exa6_10_1.sci | 18 |
2 files changed, 23 insertions, 23 deletions
diff --git a/767/CH1/EX1.4.5/Ch1Exa1_4_5.sci b/767/CH1/EX1.4.5/Ch1Exa1_4_5.sci index 7db317d8d..14af1eaa4 100755 --- a/767/CH1/EX1.4.5/Ch1Exa1_4_5.sci +++ b/767/CH1/EX1.4.5/Ch1Exa1_4_5.sci @@ -1,15 +1,15 @@ -// Scilab code Exa1.4.5 : To calculate densities of O and Pb whose radii are given: Page 35 (2011)
-m_O = 2.7e-026; // Mass of O nucleus, kg
-r_O = 3e-015; // Radius of O nucleus, m
-V_O = 4/3*(%pi*(r0)^3); // Volume of O nucleus, metre cube
-d_O = m_O/V_O; // Density of O nucleus, kg/metre cube
-m_Pb = 3.4e-025; // Mass of Pb nucleus, kg
-r_Pb = 7.0e-015; // Radius of Pb nucleus, m
-V_Pb = 4/3*(%pi*(r_Pb)^3); // Volume of Pb nucleus, metre cube
-d_Pb = m_Pb/V_Pb; //Density of Pb nucleus,kg/metre cube
-printf("\nThe density of oxygen nucleus : %4.2e in kg/metre cube",d_O);
-printf("\nThe density of Pb nucleus : %4.2e in kg/metre cube",d_Pb);
-
-// Result
-// The density of oxygen nucleus : 3.73e+018 in kg/metre cube
+// Scilab code Exa1.4.5 : To calculate densities of O and Pb whose radii are given: Page 35 (2011) +m_O = 2.7e-026; // Mass of O nucleus, kg +r_O = 3e-015; // Radius of O nucleus, m +V_O = 4/3*(%pi*( r_O)^3); // Volume of O nucleus, metre cube +d_O = m_O/V_O; // Density of O nucleus, kg/metre cube +m_Pb = 3.4e-025; // Mass of Pb nucleus, kg +r_Pb = 7.0e-015; // Radius of Pb nucleus, m +V_Pb = 4/3*(%pi*(r_Pb)^3); // Volume of Pb nucleus, metre cube +d_Pb = m_Pb/V_Pb; //Density of Pb nucleus,kg/metre cube +printf("\nThe density of oxygen nucleus : %4.2e in kg/metre cube",d_O); +printf("\nThe density of Pb nucleus : %4.2e in kg/metre cube",d_Pb); + +// Result +// The density of oxygen nucleus : 3.73e+018 in kg/metre cube // The density of Pb nucleus : 2.37e+017 in kg/metre cube
\ No newline at end of file diff --git a/767/CH6/EX6.10.1/Ch06Exa6_10_1.sci b/767/CH6/EX6.10.1/Ch06Exa6_10_1.sci index 143a26da4..1e498e954 100755 --- a/767/CH6/EX6.10.1/Ch06Exa6_10_1.sci +++ b/767/CH6/EX6.10.1/Ch06Exa6_10_1.sci @@ -1,9 +1,9 @@ -// Scilab code Exa6.10.1 : To calculate the value of magnetic field of the electron whose energy is given Page 274(2011)
-q = 1.602e-019; // Charge of an electron, C
-r = 0.28; // Radius of stable orbit,m
-E = 70*1.6e-013; // Energy of the electron, j
-c = 3e+08; // Velocity of light, m/s
-B = E/(e*r*c); // Magnetic field, T
-printf("\nThe magnetic field of the electron : %4.2f T", B)
-// Result
-// The magnetic field of the electron : 0.83 T
\ No newline at end of file +// Scilab code Exa6.10.1 : To calculate the value of magnetic field of the electron whose energy is given Page 274(2011) +q = 1.602e-019; // Charge of an electron, C +r = 0.28; // Radius of stable orbit,m +E = 70*1.6e-013; // Energy of the electron, j +c = 3e+08; // Velocity of light, m/s +B = E/(q*r*c); // Magnetic field, T +printf("\nThe magnetic field of the electron : %4.2f T", B) +// Result +// The magnetic field of the electron : 0.83 T
\ No newline at end of file |