summaryrefslogtreecommitdiff
path: root/3825/CH3/EX3.14/Ex3_14.sce
blob: 6577ba256c8444bb14f9ef0be2032cb2a81c586e (plain)
1
2
3
4
5
6
clc
hf=504.7
hg=2706.3
h=2600
X=(h-hf)/(hg-hf)//from relation h=Xhg+(1-X)hf
mprintf("X=%f",X)//ans may vary due to roundoff error