25.3.5.7 Substitution

We introduced the LU-decomposition as a method for solving a linear system of equations. However, until now we have only decomposed the matrix A into L and U. Obviously, we now want to take the second step and see that this matrix decomposition helps us in solving a linear system of equations.

For this we return to the system of Eq. 25.2 from which we also took the matrix. The right-hand side is

b=(240)

si179_e

We will now use the function DoLUDecomposition in combination with Eq. 25.20 and Eq. 25.21 for solving the linear system of equations

Ly=bUx=y

described by Eq. 25.18 and Eq. 25.19.

Calculating y. We first solve Eq. ...

Get Microfluidics: Modeling, Mechanics and Mathematics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.