of 2
1
4.40 When balancing the following chemical reaction by conserving the number of atoms of each element
between reactants and products:
Solve for the unknown stoichiometric coefficients using
(a) The user-defined function GaussJordan that was developed in Problem 4.22.
(b) MATLAB’s left division operation.
3.2000
(b) The following script file to solve the problem by using MATLAB’s left division.
clear, clc
A=[-4 0 1 1; 0 0 1 0; 0 -2 4 3; 0 -1 0 4];
b=[2; 4; 0; 0];
4–011
01–04
a
d
2
3.2000