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.10w | |
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.10w')
-rwxr-xr-x | 2084/CH11/EX11.10w/11_10w.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2084/CH11/EX11.10w/11_10w.sce b/2084/CH11/EX11.10w/11_10w.sce new file mode 100755 index 000000000..dc5e0a70c --- /dev/null +++ b/2084/CH11/EX11.10w/11_10w.sce @@ -0,0 +1,20 @@ +//developed in windows XP operating system 32bit
+//platform Scilab 5.4.1
+clc;clear;
+//example 11.10w
+//calculation of the stretch produced in the spring
+
+//given data
+d=1*10^-2//stretch(in m) of the spring
+R=6400*10^3//radius(in m) of the earth
+h=800*10^3//height(in m) above the earth's surface
+
+//calculation
+//The extension in the spring on the surface is
+//1*10^-2 = (G*M*m)/(k*R^2)...........(1)
+//The extension in the spring at height h above the surface
+//x = (G*M*m)/(k*(R+h)^2).............(2)
+//from above equations,we get
+x=d*((R^2)/(R+h)^2)
+
+printf('the stretch produced in the spring is %3.2f cm',x*10^2)
|