summaryrefslogtreecommitdiff
path: root/1652/CH15/EX15.2
diff options
context:
space:
mode:
Diffstat (limited to '1652/CH15/EX15.2')
-rwxr-xr-x1652/CH15/EX15.2/15_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1652/CH15/EX15.2/15_2.sce b/1652/CH15/EX15.2/15_2.sce
new file mode 100755
index 000000000..b3e64caec
--- /dev/null
+++ b/1652/CH15/EX15.2/15_2.sce
@@ -0,0 +1,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)