22.01.2014 Views

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

download searchable PDF of Circuit Design book - IEEE Global ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 Some Fundamental Numerical Methods<br />

First normalize the first row with respect to "pivot coefficient" all:<br />

[3<br />

: ~.5 - ~.5 ~.5]. (2.8)<br />

1 - 1 2<br />

This is done to avoid potential numerical overflow or underflow in the next<br />

multiplication. In order to make the a 21 coefficient zero, form a new row 2 by<br />

multiplying row 1 by a21 and subtracting this from row' 2. Also, form a new<br />

row 3 by multiplying row I by a 31<br />

and subtracting this from row 3. The result<br />

IS<br />

0.5 - 0.5 0.5 j<br />

0.5 1.5 5.5 .<br />

(2.9)<br />

-0.5 0.5 0.5<br />

The next cycle is to normalize the coefficients <strong>of</strong> row 2 with respect to the<br />

new pivot coefficient a 22 :<br />

0.5<br />

I<br />

-0.5<br />

-0.5<br />

3<br />

0.5<br />

0.5 ]<br />

II .<br />

0.5<br />

Note that after normalization the new coefficient is always<br />

(2.10)<br />

(2.11 )<br />

where K is the pivot row, I is the new row being formed, and J is the<br />

coefficient (column) being formed. Continue by forming new rows I and 3 in<br />

(2.10):<br />

- 5 ]<br />

~I .<br />

(2.12)<br />

In the final cycle, normalize the coefficients <strong>of</strong> row 3 with respect to<br />

coefficient a JJ<br />

:<br />

[<br />

6 ~ -; -;1]. (2.13)<br />

o 0 1 3<br />

Finally, form new rows I and 2 using (2.11):<br />

[ 6 ~ g i]. (2.14)<br />

o 0 I 3<br />

Because (2.14) now represents the system in (2.5), the solution is in column 4:<br />

Xl = 1, X2 = 2, and x J = 3.<br />

The BASIC language Program B2-1 in Appendix B implements this algorithm.<br />

Note that new coefficients are generated according to (2.1 I) in program<br />

line number 9330. Lines 9140-9240 implement a feature not yet mentioned. If<br />

any pivot coefficient is too small (taken to be less than or equal to IE - 6 in<br />

line 9020), then the rows are interchanged. The reader is encouraged to first

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!