summaryrefslogtreecommitdiff
path: root/2219/CH11/EX11.4/Ex11_4.sce
blob: c2f6dcf4cc1895e99fbbd4526ab87fd26c84e3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Chapter 11 example 4
//------------------------------------------------------------------------------
clc;
clear;

// Given data
h       = 35800;            // height of satellite orbit from earth in km
G       = 6.67*10^-11;      // Gravitational constant
M       = 5.98*10^24;       // mass of the earth in kg
Re      = 6364;             // radius of earth in km
i       = 2;                // inclination angle

// Calculations
u       = G*M
r       = Re+h
Vi      = sqrt(u/r*10^3)*tan(i*%pi/180);     // magnitude of velocity impulse
V       = Vi/1000;                           // magnitude of velocity impulse in m/s
// Output
mprintf('Magnitude of velocity impulse = %d m/s',V);
//------------------------------------------------------------------------------