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 /998/CH29/EX29.58/Ex58.sce | |
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 '998/CH29/EX29.58/Ex58.sce')
-rwxr-xr-x | 998/CH29/EX29.58/Ex58.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/998/CH29/EX29.58/Ex58.sce b/998/CH29/EX29.58/Ex58.sce new file mode 100755 index 000000000..f90a1ca4e --- /dev/null +++ b/998/CH29/EX29.58/Ex58.sce @@ -0,0 +1,14 @@ +//Ex:58
+clc;
+clear;
+close;
+a=20000;//apogee in km
+b=16000;//perigee in km
+x=2*a;//sum of apogee and perigee
+B=-40000;
+A=1
+C=256000000;
+r_a1=(-B+sqrt(B^2-(4*A*C)))/2;
+printf("The apogee distance=%d km",r_a1);
+r_p1=x-r_a1;
+printf("\n The perigee distance=%d km",r_p1);
\ No newline at end of file |