From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2837/CH10/EX10.12/Ex10_12.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2837/CH10/EX10.12/Ex10_12.sce (limited to '2837/CH10/EX10.12/Ex10_12.sce') diff --git a/2837/CH10/EX10.12/Ex10_12.sce b/2837/CH10/EX10.12/Ex10_12.sce new file mode 100755 index 000000000..b5936d4a7 --- /dev/null +++ b/2837/CH10/EX10.12/Ex10_12.sce @@ -0,0 +1,14 @@ +clc +clear +//Initialization of variables +disp("From table 2 of keenan and keynes,") +p1=98.87 //psia +p2=31.78 //psia +t1=80 //F +h2=26.365 //btu/lb +h1=11.554 //btu/lb +hfg=67.203 //btu/lb +//calculations +x=(h2-h1)/hfg +//results +printf("The state of vapor leaving is %.2f psia with a quality of %.2f percent",p2,x*100) -- cgit