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 /401/CH11/EX11.1 | |
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 '401/CH11/EX11.1')
-rwxr-xr-x | 401/CH11/EX11.1/Example11_1.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/401/CH11/EX11.1/Example11_1.sce b/401/CH11/EX11.1/Example11_1.sce new file mode 100755 index 000000000..8f91b4447 --- /dev/null +++ b/401/CH11/EX11.1/Example11_1.sce @@ -0,0 +1,20 @@ +//Example 11.1
+//Program to determine the Voltage required for a phase change of
+//pi radians
+
+clear;
+clc ;
+close ;
+
+//Given data
+L=2*10^-2; //metres - LENGTH OF THE WAVEGUIDE
+Lambda=1.3*10^-6; //metres - WAVELENGTH
+d=25*10^-6; //metres - DISTANCE BETWEEN THE ELECTRODES
+r=30.8*10^-12; //m/V - ELECTRO-OPTIC COEFFICIENT
+n1=2.1; //REFRACTIVE INDEX AT 1.3um WAVELENGTH
+
+//Calculation of the Voltage required for a phase change of pi radians
+V_pi=(Lambda*d)/((n1^3)*r*L);
+
+//Displaying the Result in Command Window
+printf("\n\n\t Voltage required for a phase change of pi radians is %0.1f V.",V_pi);
\ No newline at end of file |