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 /1271/CH5/EX5.10/example5_10.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 '1271/CH5/EX5.10/example5_10.sce')
-rwxr-xr-x | 1271/CH5/EX5.10/example5_10.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1271/CH5/EX5.10/example5_10.sce b/1271/CH5/EX5.10/example5_10.sce new file mode 100755 index 000000000..03558e9a9 --- /dev/null +++ b/1271/CH5/EX5.10/example5_10.sce @@ -0,0 +1,11 @@ +clc +// Given that +mu1 = 3.6 // refractive index for core +mu2 = 3.55 // refractive index for cladding +// Sample Problem 10 on page no. 5.19 +printf("\n # PROBLEM 10 # \n") +NA = sqrt(mu1^2 - mu2^2)//calculation for numerical aperture +Mm1 = 0.5 * (%pi * 5 * NA)^2//calculation for no. of modes in first case +Mm2 = 0.5 * (%pi * 50 * NA)^2//calculation for no. of modes in second case +printf("\n Standard formula used \n Mm=1/2(pi*d*NA/lambda)^2. NA=sqrt(mu1^2-mu2^2). \n") +printf("\n Number of modes in first case = %d. \n Number of modes in second case = %d.",Mm1,Mm2) |