summaryrefslogtreecommitdiff
path: root/1535/CH14/EX14.1/Ch14Ex1.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1535/CH14/EX14.1/Ch14Ex1.sci
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1535/CH14/EX14.1/Ch14Ex1.sci')
-rwxr-xr-x1535/CH14/EX14.1/Ch14Ex1.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/1535/CH14/EX14.1/Ch14Ex1.sci b/1535/CH14/EX14.1/Ch14Ex1.sci
new file mode 100755
index 000000000..d9821a1aa
--- /dev/null
+++ b/1535/CH14/EX14.1/Ch14Ex1.sci
@@ -0,0 +1,12 @@
+// Scilab Code Ex14.1: Spontaneous magnetisation of the substance: Page-306 (2010)
+N = 6.023e+023; // Avogadro's number. per mole
+A = 56; // Atomic weight of the substance, g/mole
+d = 7.9; // Density of the substance, gram per cm cube
+m_B = 9.27e-024; // Bohr's Magneton, joule per tesla
+m = 2.2*m_B; // Magnetic moment of substance, joule per tesla
+n = d*N/A*1e+006; // Number of atoms per unit volume of the substance, per metre cube
+M = n*m; // Spontaneous magnetisation of the substance, ampere per metre
+printf("\nThe spontaneous magnetisation of the substance = %4.2e ampere per metre", M);
+
+// Result
+// The spontaneous magnetisation of the substance = 1.73e+006 ampere per metre \ No newline at end of file