summaryrefslogtreecommitdiff
path: root/1619/CH1/EX1.9.1/Example1_9_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1619/CH1/EX1.9.1/Example1_9_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1619/CH1/EX1.9.1/Example1_9_1.sce')
-rwxr-xr-x1619/CH1/EX1.9.1/Example1_9_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1619/CH1/EX1.9.1/Example1_9_1.sce b/1619/CH1/EX1.9.1/Example1_9_1.sce
new file mode 100755
index 000000000..c13f8bbd8
--- /dev/null
+++ b/1619/CH1/EX1.9.1/Example1_9_1.sce
@@ -0,0 +1,17 @@
+// Example 1.91 page 1.22
+// To calculate Numerical Aperture (NA), Acceptance angle (phiA), critical Angle (phiC)...
+
+clc;
+clear;
+
+n1= 1.5; // RI of medium 1
+n2 =1.45; // RI of medium 2
+
+del= (n1-n2)/n1;
+NA = n1*(sqrt(2*del));
+printf('The Numerical aperture is %.2f ',NA);
+phiA = asind(NA);
+printf('\n\nThe Acceptance angel is %.2f degrees',phiA);
+
+phiC = asind(n2/n1);
+printf('\n\nThe Critical angel is %.2f degrees',phiC);