Use Excel to generate the solution of Eq. 5.31 for (m=1) shown in Fig. 5.18 To do

Question:

Use Excel to generate the solution of Eq. 5.31 for \(m=1\) shown in Fig. 5.18 To do so, you need to learn how to perform linear algebra in Excel. For example, for \(N=4\) you will end up with the matrix equation of Eq. 5.37. To solve this equation for the \(u\) values, you will have to compute the inverse of the \(4 \times 4\) matrix, and then multiply this inverse into the \(4 \times 1\) matrix on the right of the equation. In Excel, to do array operations, you must use the following rules: Pre-select the cells that will contain the result; use the appropriate Excel array function (look at Excel's Help for details); press Ctrl + Shift + Enter, not just Enter. For example, to invert the \(4 \times 4\) matrix you would: preselect a blank \(4 \times 4\) array that will contain the inverse matrix; type \(=\) minverse \(([\) array containing matrix to be inverted \(])\); press \(\mathrm{Ctrl}+\) Shift + Enter. To multiply a \(4 \times 4\) matrix into a \(4 \times 1\) matrix you would do the following: pre-select a blank \(4 \times 1\) array that will contain the result; type \(=\operatorname{mmult}([\) array containing \(4 \times 4\) matrix \(]\), [array containing \(4 \times 1\) matrix]); press Ctrl + Shift + Enter.

Data From Equation 5.37

image text in transcribed

Data From Equation 5.31

image text in transcribed

Data From Fig. 5.18

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Fox And McDonald's Introduction To Fluid Mechanics

ISBN: 9781118912652

9th Edition

Authors: Philip J. Pritchard, John W. Mitchell

Question Posted: