summaryrefslogtreecommitdiff
path: root/2417/CH2/EX2.2/Ex2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2417/CH2/EX2.2/Ex2_2.sce')
-rwxr-xr-x2417/CH2/EX2.2/Ex2_2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2417/CH2/EX2.2/Ex2_2.sce b/2417/CH2/EX2.2/Ex2_2.sce
new file mode 100755
index 000000000..7712c8105
--- /dev/null
+++ b/2417/CH2/EX2.2/Ex2_2.sce
@@ -0,0 +1,12 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 2.2\n\n\n");
+// Chapter 2: Work, Energy, and Heat
+// Problem 2.2 (page no. 62)
+// Solution
+
+//Given
+k=100; // Unit:lbf/in. //k=spring constant
+l=2; //Unit:inch //l= length of compression of string
+work=(1/2)*k*l^2; //force-displacement relation //Unit:in*lbf
+printf("Workdone is %f inch*lbf",work);