summaryrefslogtreecommitdiff
path: root/1172/CH8/EX8.9/Example8_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH8/EX8.9/Example8_9.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1172/CH8/EX8.9/Example8_9.sce')
-rwxr-xr-x1172/CH8/EX8.9/Example8_9.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1172/CH8/EX8.9/Example8_9.sce b/1172/CH8/EX8.9/Example8_9.sce
new file mode 100755
index 000000000..412f318d1
--- /dev/null
+++ b/1172/CH8/EX8.9/Example8_9.sce
@@ -0,0 +1,14 @@
+clc
+//Given that
+R_e = 6.4e6 // radius of Earth in km
+M_e = 6e24 // mass of Earth in kg
+G = 6.67e-11 // universal gravitational constant
+u = 6e3 // initial speed of rocket in m/s
+
+// sample problem 9 page No. 302
+printf("\n\n\n # Problem 9 # \n")
+
+printf("Standard formula used U_f - U_i = 1/2 * m *(u^2 - v^2)\n ")
+h = ((R_e * 1e3)^2 * u^2) / (2 * G * M_e - R_e * u^2) / 1000 // calculation of Height reached by rocket before returning to Earth
+
+printf ("\n Height reached by rocket before returning is %e km.",h)