21.06.2014 Views

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

1 Computing with Matrices and Vectors<br />

Useful links:<br />

Matlab Online Documentation<br />

MATLAB guide<br />

MATLAB Primer<br />

The implementation of most numerical algorithms relies on array type data structures modelling concepts<br />

from linear algebra (matrices and vectors).<br />

Related information can be found in [18, Ch. 1].<br />

1.1 Notations<br />

Ôº¾½ ¼º¼<br />

1.1.1 Vectors<br />

Ôº¾¿ ½º½<br />

Vectors = are n-tuples (n ∈ N) with components x i ∈ K, over field K ∈ {R, C}.<br />

vector = one-dimensional array (of real/complex numbers)<br />

Part I<br />

Default in this lecture:<br />

vectors = column vectors<br />

⎛<br />

⎝ x ⎞<br />

1<br />

. ⎠ ∈ K n ( )<br />

x1 · · · x n<br />

x n<br />

column vector<br />

vector space of column vectors with n components<br />

row vector<br />

✎ notation for column vectors: bold small roman letters, e.g. x,y,z<br />

Systems of Equations<br />

Initialization of vectors in MATLAB:<br />

column vectors x = [1;2;3];<br />

row vectors y = [1,2,3];<br />

Ôº¾¾ ¼º¼<br />

Transposing:<br />

{<br />

column vector ↦→ row vector<br />

row vector ↦→ column vector .<br />

⎛<br />

⎝ x ⎞T<br />

⎛<br />

1<br />

. ⎠ = ( ) ( ) T<br />

x 1 · · · x n , x1 · · · x n = ⎝ x ⎞<br />

1<br />

. ⎠<br />

x n x n<br />

Ôº¾ ½º½<br />

Transposing in MATLAB: x_T = x’;

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

Saved successfully!

Ooh no, something went wrong!