From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3159/CH16/EX16.2/Ex16_2.sce | 19 +++++++++++++++++++ 3159/CH16/EX16.2/Ex16_2.txt | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100755 3159/CH16/EX16.2/Ex16_2.sce create mode 100755 3159/CH16/EX16.2/Ex16_2.txt (limited to '3159/CH16/EX16.2') diff --git a/3159/CH16/EX16.2/Ex16_2.sce b/3159/CH16/EX16.2/Ex16_2.sce new file mode 100755 index 000000000..1ca826a0d --- /dev/null +++ b/3159/CH16/EX16.2/Ex16_2.sce @@ -0,0 +1,19 @@ +// Comparison of saturation temperatures +clc +t1 = 0 // temperature in kelvin +t2 = 300 // temperature in kelvin +m_net_Gd = 7 // net magnetic moment of gadolinium +m_net_Co = 1.7 // net magnetic moment of cobalt +t_c_Gd = 289 // curie temperature for Gd +printf("\n Example 16.2") +printf("\n Part A:") +if m_net_Gd> m_net_Co then +printf("\n At %d K, Net magnetic moment of gadolinium i.e. %d is greater than net magnetic moment of cobalt i.e. %.1f ",t1,m_net_Gd,m_net_Co) +printf("\n So, Gd will have higher saturation magnetization") +end +printf("\n\n Part B:") +if t_c_Gd