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

// Given data
h       = 150;      // height of satellite from earth in km
G       = 6.67*10^-11;      // Gravitational constant
M       = 5.98*10^24;       // mass of the earth in kg
Re      = 6370;             // radius of earth in km

// Calculations
u       = G*M
V       = sqrt(u/((Re + h)*10^3))  // orbital velocity
V1      = V/1000;                  // orbital velocity in km/s

// Output
mprintf('Orbital velocity = %3.3f km/s',V1);
//------------------------------------------------------------------------------