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.8/example5_8.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.8/example5_8.sce')
-rwxr-xr-x | 1271/CH5/EX5.8/example5_8.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1271/CH5/EX5.8/example5_8.sce b/1271/CH5/EX5.8/example5_8.sce new file mode 100755 index 000000000..c551388b3 --- /dev/null +++ b/1271/CH5/EX5.8/example5_8.sce @@ -0,0 +1,12 @@ +clc +// Given that +lambda = 1.25e-6 //wavelength of light in meter +mu1 = 1.465 // refractive index for core +mu2 = 1.460 // refractive index for cladding +// Sample Problem 8 on page no. 5.18 +printf("\n # PROBLEM 8 # \n") +NA = sqrt(mu1^2 - mu2^2) +k = (2.4 * lambda) / ( %pi * NA) +Mm = 0.5 * ((%pi * 50e-6 * NA) / lambda)^2 +printf("\n Standard formula used \n NA = sqrt(mu1^2 - mu2^2). \n k = (2.4 * lambda) / ( pi * NA). \n Mm = 0.5 * ((pi * 50e-6 * NA) / lambda)^2. \n ") +printf("\n Diameter of core < %e meter,\n number of modes = %d",k,Mm) |