diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2063/CH10/EX10.3/10_3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2063/CH10/EX10.3/10_3.sce')
-rwxr-xr-x | 2063/CH10/EX10.3/10_3.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2063/CH10/EX10.3/10_3.sce b/2063/CH10/EX10.3/10_3.sce new file mode 100755 index 000000000..8d9a7bf23 --- /dev/null +++ b/2063/CH10/EX10.3/10_3.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+T1=300;//The maximum temperature at which carnot cycle operates in K
+T2=250;//The minimum temperature at which carnot cycle operates in K
+
+//Calculations
+COPr=T2/(T1-T2);//COP of the refrigerating machine
+COPh=T1/(T1-T2)//COP of heat pump
+n=((T1-T2)/T1)*100;//COP or efficiency of the heat engine in percentage
+
+//Output data
+printf('(a)COP of the machine when it is operated as a refrigerating machine is %3.2f\n (b)COP when it is operated as heat pump is %3.2f\n (c)COP or efficiency of the Heat engine is %3.2f percent',COPr,COPh,n)
|