summaryrefslogtreecommitdiff
path: root/1997/CH11/EX11.22/example22.sce
blob: b528b3912d24bf09b4af8a56cb2bd046efb579ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Chapter-11 example 22
//=============================================================================
clc;
clear;
//input data
Ra = 1000;//Range of target A in Kms
//Calculations
Rb =Ra*cos(45*%pi/180);//range of target B in kms

//output
mprintf('Range of target B is %g Kms\n',Rb);
mprintf(' Note:value of cos(45) is incorrectly taken as 1/2 in textbook');

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