diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2414/CH17/EX17.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2414/CH17/EX17.7')
-rwxr-xr-x | 2414/CH17/EX17.7/Ex17_7.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/2414/CH17/EX17.7/Ex17_7.sce b/2414/CH17/EX17.7/Ex17_7.sce new file mode 100755 index 000000000..efb04fbb4 --- /dev/null +++ b/2414/CH17/EX17.7/Ex17_7.sce @@ -0,0 +1,9 @@ +clc;
+close();
+clear();
+//page no 556
+//prob no. 17.7
+l=127-70.2; //Difference in longitude
+L=40.5 //Latitude of New York
+d_km=35.786*10^3*sqrt(1+0.42*(1-cos(L*%pi/180)*cos(l*%pi/180)));
+mprintf('The distance is %.0f km \n',d_km)
|