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 /2409/CH3/EX3.1/Ex3_1.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 '2409/CH3/EX3.1/Ex3_1.sce')
-rwxr-xr-x | 2409/CH3/EX3.1/Ex3_1.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2409/CH3/EX3.1/Ex3_1.sce b/2409/CH3/EX3.1/Ex3_1.sce new file mode 100755 index 000000000..9537c3228 --- /dev/null +++ b/2409/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,20 @@ + +//Variable Declaration + +Pss=-90 //Location of geostationary satellite(degrees) +PE=-100 //Longitude of the earth station antenna(degrees) +LE=35 //Latitude of the earth station antenna(degrees) + +//Calculation + +B=PE-Pss //Angle between planes containing a and c(degrees) +b=acos(cos(B)*cos(LE)) //Angle of plane containing b(radians) +A=asin(sin(abs(B*3.142/180))/sin(b)) //Angle between planes containing b and c (radians) + +A=A*180/3.142 //Converting A into degrees +//LE>0 and B<0 by observation +Az= 180-A //Azimuth angle(degrees) + +//Result + +printf("The azimuth angle for the given earth station antenna is %.2f degrees",Az) |