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 --- 1847/CH4/EX4.5/Ch04Ex5.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 1847/CH4/EX4.5/Ch04Ex5.sce (limited to '1847/CH4/EX4.5') diff --git a/1847/CH4/EX4.5/Ch04Ex5.sce b/1847/CH4/EX4.5/Ch04Ex5.sce new file mode 100755 index 000000000..3b427e1dc --- /dev/null +++ b/1847/CH4/EX4.5/Ch04Ex5.sce @@ -0,0 +1,13 @@ +// Scilab Code Ex4.5:: Page-4.7 (2009) +clc; clear; +mu = [1.33 1.65 1.55]; // Refractive indices of the material +// As mu = tand(ip), solving for ip +ip = atand(mu); // Brewster's law gives polarizing angle, degrees +for i =1:1:3 +printf("\nmu = %4.2f, ip = %4.1f degrees", mu(i), ip(i)); +end + +// Result +// mu = 1.33, ip = 53.1 degrees +// mu = 1.65, ip = 58.8 degrees +// mu = 1.55, ip = 57.2 degrees -- cgit