diff options
Diffstat (limited to '3843/CH4/EX4.1/Ex4_1.sce')
-rw-r--r-- | 3843/CH4/EX4.1/Ex4_1.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/3843/CH4/EX4.1/Ex4_1.sce b/3843/CH4/EX4.1/Ex4_1.sce new file mode 100644 index 000000000..32ec1b833 --- /dev/null +++ b/3843/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,9 @@ +// Example 4_1
+clc;funcprot(0);
+// Given data
+s_0=0;// m
+s_1=0.8;// The distance in m
+
+// Calculation
+W_12=integrate('100*x','x',s_0,s_1);// N.m
+printf("\nThe work done by the spring on the system,W_12=%2.0f J",W_12);
|