diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1655/CH2/EX2.4.1/Example_2_4_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1655/CH2/EX2.4.1/Example_2_4_1.sce')
-rwxr-xr-x | 1655/CH2/EX2.4.1/Example_2_4_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1655/CH2/EX2.4.1/Example_2_4_1.sce b/1655/CH2/EX2.4.1/Example_2_4_1.sce new file mode 100755 index 000000000..e541c9bc1 --- /dev/null +++ b/1655/CH2/EX2.4.1/Example_2_4_1.sce @@ -0,0 +1,16 @@ +// Example 2.4.1 page 2.11
+
+clc;
+clear;
+
+n1=1.49; //core refractive index
+n2=1.45; //cladding refractive index
+
+phi = asind(n2/n1); //computing critical angle
+NA = sqrt(n1^2 - n2^2); //computing numericla aperture
+theta= asind(NA); //computing acceptance angle
+
+printf("\nCritical angle is %.2f degrees.\nNumerical aperture is %.3f.\nAcceptance angle is %.2f degree.",phi,NA,theta);
+
+//answer in the book for Numerical aperture is 0.343, deviation of 0.003
+//answer in the book for Acceptance angle is 20.24, deviation of 0.18
|