summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.23/example23.sce
blob: d3eb3ba411d4a58f2ead7f82772d3dfe75b4d0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter-11 example 23
//=============================================================================
clc;
clear;
//input data
Az = 60;//azimuth angle of the target in degrees
Height = 10;//height of target in kms
//Calculations
R = 10/sin(Az*%pi/180);

//output
mprintf('Range of the Target is %g Kms',R);

//==========end of the program=================================================