summaryrefslogtreecommitdiff
path: root/2420/CH2/EX2.1/2_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2420/CH2/EX2.1/2_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2420/CH2/EX2.1/2_1.sce')
-rwxr-xr-x2420/CH2/EX2.1/2_1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2420/CH2/EX2.1/2_1.sce b/2420/CH2/EX2.1/2_1.sce
new file mode 100755
index 000000000..68c3a3c17
--- /dev/null
+++ b/2420/CH2/EX2.1/2_1.sce
@@ -0,0 +1,24 @@
+clc
+clear
+//Initialization of variables
+x1=0.135
+x2=0.056
+veca=[32.5 48.4 5.6 13.5]
+B1=11788
+//calculations
+vecb=veca/(1-x1)
+vecc=veca/(1-x1-x2)
+B2=B1/(1-x1)
+B3=B1/(1-x1-x2)
+vecb(4)=0
+vecc(3)=0
+vecc(4)=0
+//results
+printf("In Moisture free case, ")
+format('v',6);vecb
+disp(vecb)
+printf("In Moisture and Ash free case, ")
+format('v',6);vecc
+disp(vecc)
+printf("Energy in Moisture free case = %d Btu per lb",B2)
+printf("\n Energy in Moisture and ash free case = %d Btu per lb",B3)