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 --- 1871/CH10/EX10.5/Ch010Ex5.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1871/CH10/EX10.5/Ch010Ex5.sce (limited to '1871/CH10/EX10.5/Ch010Ex5.sce') diff --git a/1871/CH10/EX10.5/Ch010Ex5.sce b/1871/CH10/EX10.5/Ch010Ex5.sce new file mode 100755 index 000000000..c98fa4b25 --- /dev/null +++ b/1871/CH10/EX10.5/Ch010Ex5.sce @@ -0,0 +1,14 @@ +// Scilab code Ex10.5: Pg:419 (2008) +clc;clear; +n = 1.5; // Refractive index of glass +E = 1; // For simplicity assume electric field strength to be unity, N/C +epsilon_0 = 8.85e-012; // Permittivity of free space, farad per metre +epsilon_r = 6.75; // Relative permittivity of free space at optical frequencies +mu = 1.5; // Refractive index for glass +P_e = epsilon_0*(n^2 - 1)*E; // Electronic polarizability, farad Sq.m +P_i = epsilon_0*(epsilon_r - n^2)*E; // Ionic polarizability, farad Sq.m +percent_P_i = P_i/(P_e+P_i)*100; // Percentage ionic polarizability +printf("\nPercent ionic polarizability for glass = %3.1f percent", percent_P_i); + +// Result +// Percent ionic polarizability for glass = 78.3 percent \ No newline at end of file -- cgit