summaryrefslogtreecommitdiff
path: root/998/CH29/EX29.71/Ex71.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /998/CH29/EX29.71/Ex71.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 '998/CH29/EX29.71/Ex71.sce')
-rwxr-xr-x998/CH29/EX29.71/Ex71.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/998/CH29/EX29.71/Ex71.sce b/998/CH29/EX29.71/Ex71.sce
new file mode 100755
index 000000000..bc2c2569c
--- /dev/null
+++ b/998/CH29/EX29.71/Ex71.sce
@@ -0,0 +1,20 @@
+//Ex:71
+clc;
+clear;
+close;
+r=6378;//radius of earth in km
+h=35786;// height in km
+r_o=2000;// in km
+x=37.4;// in degree
+i_e=x/2;// in degree
+y=asin(i_e/23.4);
+y1=y*180/%pi;// in degree
+y2=floor(y1);
+t=(365*y2*%pi)/(2*%pi*180);// in days
+A=acos(r/(r+h));
+B=A*180/%pi;// in degree
+y_mx=180-2*B;
+C=(asin((y_mx/2)/23.4))*(180/%pi);// in degree
+t2=(365*C*%pi)/(2*%pi*180);// in days
+printf("The total time of eclipse=%f days",t);
+printf("\n The total time for geostationary orbit=%f hours",t2); \ No newline at end of file