summaryrefslogtreecommitdiff
path: root/1652/CH15/EX15.2/15_2.sce
blob: b3e64caece56c06b00ae881119f60ae43e9f51c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
//Initialization of variables
w1=0.7532 //g
w2=0.9972 //g
wdep=0.4 //g
we=31.77 //g
//calculations
dn=w2/we - w1/we
t=dn/(wdep/we)
dne=wdep/we
dnmig=dn-dne
tplus=-dnmig/dne
tminus=1-tplus
//results
printf("tplus = %.3f",tplus)
printf("\n tminus= %.3f",tminus)