summaryrefslogtreecommitdiff
path: root/3785/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3785/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3785/CH1/EX1.1/Ex1_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3785/CH1/EX1.1/Ex1_1.sce b/3785/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..cadc32351
--- /dev/null
+++ b/3785/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,10 @@
+// Example 1_1
+clc;funcprot(0);
+// Given data
+h_avg=3800;// The ocean's average depth in m
+deltaT=1;// The increase in ocean temperature in K
+alpha=1.6*10^-4;// The average thermal expansion coefficient in K^-1
+
+// Calculation
+deltah=alpha*deltaT*h_avg;// The rise in sea level in m
+printf('\nThe rise in sea level is %0.3f m',deltah);