summaryrefslogtreecommitdiff
path: root/2705/CH2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /2705/CH2
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '2705/CH2')
-rwxr-xr-x2705/CH2/EX2.1/Ex2_1.sce4
-rwxr-xr-x2705/CH2/EX2.2/Ex2_2.sce4
-rwxr-xr-x2705/CH2/EX2.3/Ex2_3.sce4
-rwxr-xr-x2705/CH2/EX2.4/Ex2_4.sce4
4 files changed, 8 insertions, 8 deletions
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