INDUMAT Procedures (Quiz 2) Flashcards
1
Q
Steps for LU Decomposition
A
- Setup matrices as AX=B
- Get the upper triangular matrix based on A
- Put the multipliers in the lower triangular matrix (Make sure to negate or make “+” into “-“ and vice versa)
- Get y values from LY = B
- Get x values from UX = Y
2
Q
Steps for Inverse Method
A
- Setup the matrices as AX = B
- Find A^-1
- X = A^-1 B
3
Q
Steps for Gaussian Elimination
A
- Setup augmented matrix
- Use Elementary Row Operations until you create an upper triangular matrix
- Make sure the main diagonal values are equal to ‘1’.
- Convert back into equation form
- Back substitute
4
Q
Steps for Gauss Jordan Method
A
- Setup augmented matrix
- Use Elementary Row Operations until you create an identity matrix
- Convert back into equation form
5
Q
Steps for Gauss Jacobi
A
- Check for diagonal dominance (rearrange rows if found otherwise)
- Isolate the variables per row based on the diagonal
- Initialize/ Get k=0 iteration wherein variables are all equal to zero
- Substitute values into the equations of the variables using values computed from previous iterations
- Solve for error values (error = absolute value of old-new)
- Repeat the process until the calculated answer has an error value below the tolerable error.
6
Q
Steps for Gauss Seidel
A
- Check for diagonal dominance (rearrange rows if found otherwise)
- Isolate the variables per row based on the diagonal
- Initialize/ Get k=0 iteration wherein variables are all equal to zero
- Substitute values into the equations of the variables using the most recent values
- Solve for error values (error = absolute value of old-new)
- Repeat the process until the calculated answer has an error value below the tolerable error.
7
Q
Steps for SOR
A
- Check for diagonal dominance (rearrange rows if found otherwise)
- Isolate the variables per row based on the diagonal then add the following: (w) + (1-w)x.
- Conduct the Gauss-Seidel Method in this process
- Continue until you reach below error value
8
Q
Steps for MOSS
A
9
Q
Steps for Newton Raphson
A
- Check stability criterion which is given by:
|f(x)f’‘(x)|<[f’(x)]]^2 - If the stability criterion is valid, new iteration = previous iteration - ratio
- Substitute the value in f(x) and f’(x)
- Get ratio: f(x) / f’(x).
- Get error
- Repeat process until below tolerable error.
10
Q
Steps for Bisection Method
A
- Given a and b, substitute the values into the function
- Get the slope: m = a+b / 2
- Substitute m in function
- if f(m) = positive value, replace b.
- if f(m) = negative value, replace a.
- Repeat the process until below error value
- Make sure to get the m value as the final answer.
11
Q
Steps for Secant Method
A
- Given x^0 and x^1 (k=0 and k=1), substitute into function.
- Conduct iteration method:
hint: diagonal right - diagonal left / up - Repeat until error value
12
Q
Steps for Regula Falsi
A
- Given an x+ and x-, substitute value into function
- Do the iteration (same pattern as secant)
- Substitute iteration into function
- If f(x^k+1) = positive value, change x+ and x- keeps the previous iteration value
- If f(x^k+1) = negative value, change x- and x+ keeps the previous iteration value.