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 /2084/CH11/EX11.9w/11_9w.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 '2084/CH11/EX11.9w/11_9w.sce')
-rwxr-xr-x | 2084/CH11/EX11.9w/11_9w.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2084/CH11/EX11.9w/11_9w.sce b/2084/CH11/EX11.9w/11_9w.sce new file mode 100755 index 000000000..a5976ab8b --- /dev/null +++ b/2084/CH11/EX11.9w/11_9w.sce @@ -0,0 +1,17 @@ +//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 11.9w
+//calculation of the maximum height attained by the particle
+
+//given data
+v0=9.8*10^3//speed(in m/s) the particle is fired
+R=6400*10^3//radius(in m) of the earth
+g=9.8//gravitational acceleration(in m/s^2) of the earth
+
+//calculation
+//by the principle of conservation of energy
+//(-G*M*m/R) + (m*v0*v0/2) = -(G*M*m/(R+H))
+H=(R*R/(R-(v0*v0/(2*g))))-R
+
+printf('the maximum height attained by the particle is %d km',H*10^-3)
|