summaryrefslogtreecommitdiff
path: root/3785/CH2/EX2.7/Ex2_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3785/CH2/EX2.7/Ex2_7.sce')
-rw-r--r--3785/CH2/EX2.7/Ex2_7.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3785/CH2/EX2.7/Ex2_7.sce b/3785/CH2/EX2.7/Ex2_7.sce
new file mode 100644
index 000000000..5c4a9e20b
--- /dev/null
+++ b/3785/CH2/EX2.7/Ex2_7.sce
@@ -0,0 +1,12 @@
+// Example 2_7
+clc;funcprot(0);
+// Given data
+//The block has a width W, a height H and a specific gravity SG.
+// GM=0;
+
+//Solution
+SG=(3-sqrt(3))/6;
+printf("\nSG<=%0.4f",SG)
+SG=(3+sqrt(3))/6;
+printf("\nSG>=%0.4f",SG)
+printf("\nIce cubes and styrofoam cubes will float upright, but not soap cubes !");