diff options
Diffstat (limited to '1862/CH11/EX11.8/C11P8.sce')
-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);
|