summaryrefslogtreecommitdiff
path: root/3785/CH1/EX1.1/Ex1_1.sce
blob: cadc32351d7d1dfc0b47968cff02788e2fa10b58 (plain)
1
2
3
4
5
6
7
8
9
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);