summaryrefslogtreecommitdiff
path: root/1271/CH18/EX18.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH18/EX18.13
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 '1271/CH18/EX18.13')
-rwxr-xr-x1271/CH18/EX18.13/13.txt5
-rwxr-xr-x1271/CH18/EX18.13/example18_13.sce16
2 files changed, 21 insertions, 0 deletions
diff --git a/1271/CH18/EX18.13/13.txt b/1271/CH18/EX18.13/13.txt
new file mode 100755
index 000000000..e4757a78d
--- /dev/null
+++ b/1271/CH18/EX18.13/13.txt
@@ -0,0 +1,5 @@
+# PROBLEM 13 #
+Standard formula used
+ Chi = mu_0*N*M^2 /(3*k*t)
+
+ Susceptibility is 5.642285e-07
diff --git a/1271/CH18/EX18.13/example18_13.sce b/1271/CH18/EX18.13/example18_13.sce
new file mode 100755
index 000000000..eb8a2cabf
--- /dev/null
+++ b/1271/CH18/EX18.13/example18_13.sce
@@ -0,0 +1,16 @@
+clc
+// Given that
+N = 6.5e25 // no. of atom per m^3
+T = 300 // room temperature in K
+mu_ = 4 * %pi * 1e-7 // magnetic permittivity of space
+k = 1.38e-23 // Boltzmann's constant in J/K
+m = 9.1e-31 // mass of electron in kg
+e = 1.6e-19 // charge in an electron in C
+h = 6.62e-34 // Planck constant in J sec
+// Sample Problem 13 on page no. 18.25
+printf("\n # PROBLEM 13 # \n")
+printf("Standard formula used \n ")
+printf(" Chi = mu_0*N*M^2 /(3*k*t) \n")
+M = (e * h) / (4 * %pi * m)
+X = (mu_ * N * M^2) / (3 * k * T)
+printf("\n Susceptibility is %e",X)