summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.16/Ex11_16.sce
blob: 4d20a1c8b866f096ce46b64e41c6bcff3637d4c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 );