summaryrefslogtreecommitdiff
path: root/728/CH4/EX4.21/Ex4_21.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /728/CH4/EX4.21/Ex4_21.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 '728/CH4/EX4.21/Ex4_21.sce')
-rwxr-xr-x728/CH4/EX4.21/Ex4_21.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/728/CH4/EX4.21/Ex4_21.sce b/728/CH4/EX4.21/Ex4_21.sce
new file mode 100755
index 000000000..3155c151b
--- /dev/null
+++ b/728/CH4/EX4.21/Ex4_21.sce
@@ -0,0 +1,15 @@
+//Caption:Calculate the maximum power
+//Exa:4.21
+clc;
+clear;
+close;
+c=3*10^10;//in cm/s
+f=9*10^9;//inHz
+E_max=300;//in V/cm
+d=5;
+wl_o=c/f;
+//For TE11
+wl_c=d*%pi/1.841;
+wl_g=wl_o/sqrt(1-(wl_o/wl_c)^2);
+P_max=0.498*E_max^2*d^2*(wl_o/wl_g);
+disp(P_max,'Maximum power (in watts) =');