summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.20/example20.sce
diff options
context:
space:
mode:
Diffstat (limited to '1997/CH11/EX11.20/example20.sce')
-rwxr-xr-x1997/CH11/EX11.20/example20.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1997/CH11/EX11.20/example20.sce b/1997/CH11/EX11.20/example20.sce
new file mode 100755
index 000000000..40d025643
--- /dev/null
+++ b/1997/CH11/EX11.20/example20.sce
@@ -0,0 +1,22 @@
+//Chapter-11 example 20
+//=============================================================================
+clc;
+clear;
+//input data
+Pp = 1*10^6;//peak power in watts
+PW = 1*10^-6;//pulse width in sec
+NPd = 20;//pulses in one dwell period
+PRF = 1000;//pulse repetitive frequency
+
+//calculations
+PE = Pp*PW;//pulse energy in joule
+PED = NPd*PE;//pulse energy in one dwell period
+D = PW*PRF;//Duty cycle
+Pav = Pp*D;//average power in watts
+
+//output
+mprintf('Average Power is %g watts\n Duty Cycle is %e\n Pulse Energy is %g Joules\n Pulse Energy in one Dwell Period is %g Joules\n',Pav,D,PE,PED);
+mprintf(' Note: In textbook Values of PRF and pulses in one dwell period are varied from given values in question while solving ' );
+;
+//================end of the program============================================
+