blob: 69d3d9c7ad37fe784d4f20cc0ec5088db8c5a9da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//clear//
clc
clear
exec("2.3data.sci");
CA0=(yA0*P0)/(R*T0);
FA0 = CA0*v0;
//V = FA0*X*(1/-rA)
V = FA0*inttrap(X,p)
disp("FA0 =")
disp(FA0)
disp("mol/s")
disp("V =")
disp(V)
disp ("dm^3")
disp("Answer is slightly differennt from the book because inttrap command of SCILAB uses trapezoidal integration, while in book it has been calculated using five point formulae.")
|