summaryrefslogtreecommitdiff
path: root/23/CH4/EX4.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /23/CH4/EX4.2
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 '23/CH4/EX4.2')
-rwxr-xr-x23/CH4/EX4.2/Example_4_2.pdfbin0 -> 4630 bytes
-rwxr-xr-x23/CH4/EX4.2/Example_4_2.sce34
2 files changed, 34 insertions, 0 deletions
diff --git a/23/CH4/EX4.2/Example_4_2.pdf b/23/CH4/EX4.2/Example_4_2.pdf
new file mode 100755
index 000000000..b3692976e
--- /dev/null
+++ b/23/CH4/EX4.2/Example_4_2.pdf
Binary files differ
diff --git a/23/CH4/EX4.2/Example_4_2.sce b/23/CH4/EX4.2/Example_4_2.sce
new file mode 100755
index 000000000..17cd13141
--- /dev/null
+++ b/23/CH4/EX4.2/Example_4_2.sce
@@ -0,0 +1,34 @@
+clear;
+clc;
+
+//To find Approx Value
+function[A]=approx(V,n)
+ A=round(V*10^n)/10^n;//V-Value n-To what place
+ funcprot(0)
+endfunction
+
+function[Q]=ICPH(T0,T,A,B,C,D)
+ t=T/T0;
+ Q=(A+((B/2)*T0*(t+1))+((C/3)*T0*T0*((t^2)+t+1))+(D/(t*T0*T0)))*(T-T0)
+ funcprot(0);
+endfunction
+
+
+//Example 4.2
+//Caption : Program to find Heat Required to Heat Methane gas
+
+//Given values for methane
+R=8.314;
+T0=533.15;
+T=873.15;
+A=1.702;
+B=9.081*(10^-3);
+C=-2.164*(10^-6);
+D=0;
+
+
+//Solution
+Q=approx(R*ICPH(T0,T,A,B,C,D),0);
+disp('J',Q,'Heat Required')
+
+//End \ No newline at end of file