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 /1736/CH8/EX8.9/Ch08Ex9.sce | |
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 '1736/CH8/EX8.9/Ch08Ex9.sce')
-rwxr-xr-x | 1736/CH8/EX8.9/Ch08Ex9.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1736/CH8/EX8.9/Ch08Ex9.sce b/1736/CH8/EX8.9/Ch08Ex9.sce new file mode 100755 index 000000000..9a268bc8f --- /dev/null +++ b/1736/CH8/EX8.9/Ch08Ex9.sce @@ -0,0 +1,17 @@ +// Scilab code Ex8.9 Page:250 (2006)
+clc; clear;
+e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
+mu = 9.29e-024; // Bohr magneton, J/T
+mu_0 = 1.26e-006; // Permeability of free space, Sq. tesla cubic meter per joule
+E_F= 11.63*e; // Fermi energy, J
+N = 6.02e+028; // Atomic concentration, atoms per cubic meter
+chi_Total = 2.2e-005; // Paramagnetic susceptibility of Mg, S.I. units
+chi_Pauli = 3*N*mu^2*mu_0/(2*E_F); // Pauli diamagnetism, S.I. units
+chi_dia = chi_Total - chi_Pauli; // Diamagnetic contribution to magnetic susceptibility
+
+printf("\nThe Pauli spin susceptibility of Al = %5.3e S.I. units", chi_Pauli);
+printf("\nThe diamagnetic contribution to magnetic susceptibility of Al = %5.3e S.I. units", chi_dia);
+
+// Result
+// The Pauli spin susceptibility of Al = 5.277e-06 S.I. units
+// The diamagnetic contribution to magnetic susceptibility of Al = 1.672e-05 S.I. units
|