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 --- 2411/CH8/EX8.5/Ex8_5.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 2411/CH8/EX8.5/Ex8_5.sce (limited to '2411/CH8/EX8.5/Ex8_5.sce') diff --git a/2411/CH8/EX8.5/Ex8_5.sce b/2411/CH8/EX8.5/Ex8_5.sce new file mode 100755 index 000000000..80d3cdccf --- /dev/null +++ b/2411/CH8/EX8.5/Ex8_5.sce @@ -0,0 +1,13 @@ +// Scilab Code Ex8.5: Page-398 (2008) +clc; clear; +n1 = 1.51; // Refractive index of the core material +n2 = 1.47; // Refractive index of the cladding +NA = sqrt(n1^2-n2^2); // Numerical aperture of the optical fibre +n0 = 1; // Refractive index of air +theta_a = asin(NA/n0); // Acceptance angle of the optical fibre, rad +printf("\nThe numerical aperture of the optical fibre = %6.4f", NA); +printf("\nThe acceptance angle of the optical fibre = %4.2f degrees", theta_a*180/3.14); + +// Result +// The numerical aperture of the optical fibre = 0.3453 +// The acceptance angle of the optical fibre = 20.21 degrees -- cgit