summaryrefslogtreecommitdiff
path: root/1061/CH2/EX2.1/Ex2_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1061/CH2/EX2.1/Ex2_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 '1061/CH2/EX2.1/Ex2_1.sce')
-rwxr-xr-x1061/CH2/EX2.1/Ex2_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1061/CH2/EX2.1/Ex2_1.sce b/1061/CH2/EX2.1/Ex2_1.sce
new file mode 100755
index 000000000..9c04e346b
--- /dev/null
+++ b/1061/CH2/EX2.1/Ex2_1.sce
@@ -0,0 +1,14 @@
+//Ex:2_1
+clc;
+clear;
+close;
+n1=1.55;// core refractive index
+n2=1.50;// cladding refractive index
+x=asin(n2/n1); // Critical angle in radians
+x1=x*180/(%pi);// Critical angle in degree
+n_a=sqrt(n1^2-n2^2);// Numerical aperture
+x_a=asin(n_a)*180/(%pi);
+x_a1=ceil(x_a);// Acceptance angle in Degree
+printf("Critical angle in degree= %f degree",x1);
+printf("\n Numerical aperture= %f ",n_a);
+printf("\n Acceptance angle in degree= %f degree",x_a1); \ No newline at end of file