diff options
Diffstat (limited to '1997/CH11/EX11.22/example22.sce')
-rwxr-xr-x | 1997/CH11/EX11.22/example22.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1997/CH11/EX11.22/example22.sce b/1997/CH11/EX11.22/example22.sce new file mode 100755 index 000000000..b528b3912 --- /dev/null +++ b/1997/CH11/EX11.22/example22.sce @@ -0,0 +1,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=======================================
|