From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3710/CH9/EX9.3/Ex9_3.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 3710/CH9/EX9.3/Ex9_3.sce (limited to '3710/CH9/EX9.3/Ex9_3.sce') diff --git a/3710/CH9/EX9.3/Ex9_3.sce b/3710/CH9/EX9.3/Ex9_3.sce new file mode 100644 index 000000000..17adf993d --- /dev/null +++ b/3710/CH9/EX9.3/Ex9_3.sce @@ -0,0 +1,19 @@ +//Example 9.3, Page Number 474 +//The Function fpround(dependency) is used to round a floating point number x to n decimal places +clc; +n1=2.286 //The Ordinary Refractive Index +d=6*(10**-3) //Refractive Index Change +n2=n1-d //Difference of the Two + +NA=sqrt((n1**2)-(n2**2)) + +first=1/(4*NA) +first=fpround(first,2) + +second=3/(4*NA) +second=fpround(second,2) + +mprintf("The Requirement for Single Mode Behaviour becomes:\n"); +mprintf("\t%0.2f <= d/lambda <= %0.2f",first,second);//d=5*Lambda for suitable thickness design + +//The answer provided in the textbook for the higher region is wrong -- cgit