From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 2705/CH2/EX2.1/Ex2_1.sce | 4 ++-- 2705/CH2/EX2.2/Ex2_2.sce | 4 ++-- 2705/CH2/EX2.3/Ex2_3.sce | 4 ++-- 2705/CH2/EX2.4/Ex2_4.sce | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to '2705/CH2') diff --git a/2705/CH2/EX2.1/Ex2_1.sce b/2705/CH2/EX2.1/Ex2_1.sce index 1d5f07b56..b87b88c81 100755 --- a/2705/CH2/EX2.1/Ex2_1.sce +++ b/2705/CH2/EX2.1/Ex2_1.sce @@ -15,7 +15,7 @@ del_E = Q-W; // Change in total energy, [kJ] mprintf('\n The Change in total energy is, del_E = %f kJ\n',del_E); -if(del_E>0) +if(del_E>0) disp('Since del_E is positive, so there is an increase in total enery') else disp('Since del_E is negative, so there is an decrease in total enery') @@ -23,4 +23,4 @@ end // There is mistake in the book's results unit -// End +// End \ No newline at end of file diff --git a/2705/CH2/EX2.2/Ex2_2.sce b/2705/CH2/EX2.2/Ex2_2.sce index 095f933f2..e05105f43 100755 --- a/2705/CH2/EX2.2/Ex2_2.sce +++ b/2705/CH2/EX2.2/Ex2_2.sce @@ -13,10 +13,10 @@ Q = del_E+W;// [kJ] mprintf('\n The Heat transfer is, Q = %f kJ \n',Q); -if(Q>0) +if(Q>0) disp('Since Q>0, so heat is transferred into the system') else disp('Since Q<0, so heat is transferred from the system') end -// End +// End \ No newline at end of file diff --git a/2705/CH2/EX2.3/Ex2_3.sce b/2705/CH2/EX2.3/Ex2_3.sce index 0f6f799d4..cff50da55 100755 --- a/2705/CH2/EX2.3/Ex2_3.sce +++ b/2705/CH2/EX2.3/Ex2_3.sce @@ -14,10 +14,10 @@ del_u = -400; // Internal energy decreased ,[kJ/kg] W = Q-del_u; // [kJ/kg] mprintf('\n The Work done is, W = %f kJ/kg \n',W); -if(W>0) +if(W>0) disp('Since W>0, so Work done by the engine per kilogram of working substance') else disp('Since <0, so Work done on the engine per kilogram of working substance') end -// End +// End \ No newline at end of file diff --git a/2705/CH2/EX2.4/Ex2_4.sce b/2705/CH2/EX2.4/Ex2_4.sce index 9102fc8b3..4eaebf5a3 100755 --- a/2705/CH2/EX2.4/Ex2_4.sce +++ b/2705/CH2/EX2.4/Ex2_4.sce @@ -29,7 +29,7 @@ W = (u1-u2)+(P1*v1-P2*v2)+(C1^2/2-C2^2/2)*10^-3+Q; // [kJ/kg] mprintf('\n workdone is, W = %f kJ/kg ',W); -if(W>0) +if(W>0) disp('Since W>0, so Power is output from the system') else disp('Since <0, so Power is input to the system') @@ -40,4 +40,4 @@ end P_out = W*m_dot; // power out put from the system, [kW] mprintf('\n The power output from the system is = %f kW \n',P_out); -// End +// End \ No newline at end of file -- cgit