summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.16/Ex11_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2219/CH11/EX11.16/Ex11_16.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 '2219/CH11/EX11.16/Ex11_16.sce')
-rwxr-xr-x2219/CH11/EX11.16/Ex11_16.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2219/CH11/EX11.16/Ex11_16.sce b/2219/CH11/EX11.16/Ex11_16.sce
new file mode 100755
index 000000000..4d20a1c8b
--- /dev/null
+++ b/2219/CH11/EX11.16/Ex11_16.sce
@@ -0,0 +1,19 @@
+// Chapter 11 example 16
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given data
+H = 35800; // height of orbit in kms
+re = 6364; // radius of earth in kms
+i = 2; // angle of inclination in degrees
+
+// Calculations
+r = H+re; // radius of orbit in kms
+lamdamax = i; // max latitude deviation
+long_dev = (i^2)/228; // max. longitude deviation
+disp_lamda = (r*i*%pi/180)// max disp in km due to lamdamax
+max_disp1 = disp_lamda*(long_dev/lamdamax) // max disp.due to max.longitude deviation
+
+// Output
+mprintf('Maximum deviation in latitude = %d°\n Maximum deviation in longitude = %3.4f°\n Maximum displacements due to latitude displacement = %d Km\n Maximum displacements due to longitude displacement = %3.1f Km\n',lamdamax,long_dev,disp_lamda,max_disp1 );
+