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 /1862/CH11/EX11.8 | |
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 '1862/CH11/EX11.8')
-rwxr-xr-x | 1862/CH11/EX11.8/C11P8.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1862/CH11/EX11.8/C11P8.sce b/1862/CH11/EX11.8/C11P8.sce new file mode 100755 index 000000000..dc6a64ee7 --- /dev/null +++ b/1862/CH11/EX11.8/C11P8.sce @@ -0,0 +1,20 @@ +
+clear
+ clc
+//to find spring compression
+
+// GIVEN::
+//mass of body
+m = 3.63//in kg
+//speed of block
+v = 1.22//in m/s
+//force constant for spring
+k = 135//in
+
+// SOLUTION:
+//using work-energy principle
+//spring compression
+d = v*sqrt(m/k)//in meters
+d1 = d*10^2//in
+printf ("\n\n Spring compression d = \n\n %.3f m",d);
+printf ("\n\n Spring compression d = \n\n %.1f cm",d1);
|