diff options
Diffstat (limited to '2024/CH4/EX4.2')
-rwxr-xr-x | 2024/CH4/EX4.2/4_2.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2024/CH4/EX4.2/4_2.sce b/2024/CH4/EX4.2/4_2.sce new file mode 100755 index 000000000..8f1049e51 --- /dev/null +++ b/2024/CH4/EX4.2/4_2.sce @@ -0,0 +1,11 @@ +clc
+//Initialization of variables
+T1=100 //F
+T2=500 //F
+//calculations
+function y=cp(t)
+ y=0.239 + 0.00003*t
+endfunction
+cpavg= 1/(T2-T1) *(intg(T1,T2,cp))
+//results
+printf("average value of Cp = %.3f Btu/lbm F",cpavg)
|