diff options
Diffstat (limited to '3773/CH2/EX2.4/Ex2_4.sce')
-rw-r--r-- | 3773/CH2/EX2.4/Ex2_4.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3773/CH2/EX2.4/Ex2_4.sce b/3773/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..e37cc35e1 --- /dev/null +++ b/3773/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,13 @@ +//Chapter 2: Antenna Basics +//Example 2-4.2 +clc; +clear; + +//Calculation +deff('z=f(x,y)','z=(cos(x)**4)*sin(x)*1')//Integration Function +X=[0 0;%pi/2 %pi/2;%pi/2 0]; +Y=[0 0;2*%pi 2*%pi;0 2*%pi]; +[I,err]=int2d(X,Y,f)//Beam area (steradians) + +//Result +mprintf('The Beam Area of the given pattern is %.2f sr',I) |