Numerical Methods final

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/48

encourage image

There are no tags or description

Looks like no tags are added yet.

49 Terms

1
New cards

63

Converting Base 10 to a lower base (‘binary’) Integers

“Divide divide divide, Read up!!!”

Remainders are not the decimal points!!

2
New cards

Converting Base 10 to a lower base (‘binary’) Fractions

“Multiply, Multiply, Multiply, Read Down!!”

For binary all numbers should be either 1 or 0

3
New cards

Basic Variables (liner sys. of equations)

The variables (x1, x2, etc.) attached to the pivot columns

4
New cards

Free Variables

All variables that are NOT basic variables

5
New cards

Machine Epsilon Emach

The distance between 1 and the next larger number.

Used in |x - f(x)| / |x| < ½ Emach when bounding the error

Emach = 2-p (p is the number of bits in the mantissa)

6
New cards

Bias

The number that is added to the exponent of a a number (in scientific form) to ensure the exponent is positive, because the computer cannot represent negative numbers

  • Add the bias to the exponent in scientific form BEFORE converting the exponent to binary form

  • Scientific form - convert number to binary, put number in scientific form, then change the exponent to binary

Bias = 2k-1 - 1 (k is the number of bits in the exponent)

7
New cards

IEEE Standard 64 bit representation

Sign - 1 bit (0 if negative, 1 if positive)

Mantissa - typically 52 bits, first number not represented in computer, add numbers from left to right

Exponent - typically 11 bits, add numbers from right to left

8
New cards

What effects the significant digits of accuracy

  • dividing by 0

  • subtracting two numbers that are nearly equal

  • dividing by a number that is too close to 0


9
New cards

Are computer numbers evenly spaced?

NO

10
New cards

What is used for the representation of denormal numbers (0, +∞, -∞)

The largest and smallest exponent values are used to represent the denormal numbers in the computer.

11
New cards

Elementary Row operations

Scaling - multiplying a row by a non-zero scalar

Replacing - Subtracting the row by a multiple of another row

Interchanging - sawping the position of two rows in a matrix

12
New cards

Types of Solution sets for linear systems of equations

  • Unique solution ( each row works out with variables and solutions)

  • Infinitely many solutions (when a row of the matrix has no variables 0 = 0)

  • No solution ( when a row of the matrix with variables equals 0, 3x2 = 0)


13
New cards

Taylors theorem

For f(.) E Cn+1 (I) and x and a at E I

f(x) = f(x) + (x - a)f’(x) + (x - a)2 / 2! f’’(x) + . . . + (x -a)(n +1) / (n + 1)! f(n + 1)(zz) z E(a,x)

F(x + h) = f(x) + hf’(x) + h2/2! f’’(x) + . . . hn/n! fn(zz)

14
New cards

Finite difference Approximations

Used during Boundary value problems to find multiple unknown with different approx. equations based on the location in the equation/matrix.

15
New cards

Forward Difference Approximation

knowt flashcard image
16
New cards

Backward Difference Approximation

knowt flashcard image
17
New cards

Centered First Derivative

knowt flashcard image
18
New cards

Centered Second Derivative

knowt flashcard image
19
New cards

Linearization Formula

Where fx1 and fx2 are the partial derivatives of F(x) and (a,b) is the given point, when asked to determine the linearization at a point.

<p>Where f<sub>x1</sub> and f<sub>x2</sub> are the partial derivatives of F(x) and (a,b) is the given point, when asked to determine the linearization at a point.</p>
20
New cards

Boundary Value steps

  1. Divide the domain into N equal subintervals, resulting in n + 1 unknowns (y1, y2,2 y3, etc.) h = (b -a)/n ←- width of subintervals

  2. For each unknown (yn) write an appropriate equation + reduce

  3. Rewrite equations into matrix

  4. Solve for unknown + graph in MATLAB


21
New cards

Boundary Value problem in MATLAB

See paper

22
New cards

Bracketing Methods of root finding

  • starts with an interval that contains a root ( number satisfying f(x) = 0 )

  • Bisection method

  • Guaranteed root

  • Slowest root finding method


23
New cards

Open Methods of root finding

  • Needs one or more initial guesses to start

  • Newtons Method - Fastest convergence

  • Secant Method

  • Mullers method

  • Inverse Quadratic interpolation

  • Faster than bracketing method but root isn’t always guaranteed


24
New cards

Bisection Method

  1. Calculate the midpoint —> c = (a +b)/2

  2. Evaluate F( c )

  3. If f(a)f(b) < 0 then the next a value in [a, b] is f ( c ) , If f(a)f(b) > 0 the next b value in [a,b] is f( c)

  4. Repeat


25
New cards

Bisection Method MATLAB

26
New cards

Newtons Method

knowt flashcard image
27
New cards

Newtons Method MATLAB

See paper

28
New cards

Secant Method

knowt flashcard image
29
New cards

Secant Method on MATLAB

see paper

30
New cards

Modified Secant Method

knowt flashcard image
31
New cards

Lagrange Interpolation

knowt flashcard image
32
New cards

Muller Method

Fits a quadratic through 3 points on y = f(x) then uses the root of that quadratic as the next approximation .

<p>Fits a quadratic through 3 points on y = f(x) then uses the root of that quadratic as the next approximation .</p>
33
New cards

Inverse Quadratic Interpolation

knowt flashcard image
34
New cards

Mullers Method vs Quadratic Interpolation

Mullers Method -

  • Interpolates y as a quadratic function of x

  • Approximation is obtained by solving the quadratic for y = 0

  • Only uses an approximation for f’(x() and f’’(x)

Inverse Quad. Interp. -

  • Interpolates x as a linear function of y

  • Uses the exact value for f’(x)


35
New cards

Order of Convergence

Bisection Method - 1

Newtons Method - 2

Secant Method - 1.618

Mullers Method - 1.84

Invers quad interp - 1.84

36
New cards

Newtons Method for root finding

see paper

37
New cards

Why do computers use Gauss elimination with patrial pivot

Eliminates unnecessary round off error like dividing by 0 or subtracting by a number that is too similar. It is also necessary when 0 is in a pivot position.

38
New cards

Weierstrass Approximation thm

| f(x) - p(x) | < E

for every x E [a,b]

39
New cards

Linear Splines

knowt flashcard image
40
New cards

Cubic splines



<p></p><p></p>
41
New cards

Midpoint Rule

knowt flashcard image
42
New cards

Trapezoidal Rule

knowt flashcard image
43
New cards

Simpsons Rule

knowt flashcard image
44
New cards

Composite Midpoint rule

Separate integral into n subintervals

perform Midpoint rule on each individual subinterval

45
New cards

Composite Trapezoidal rule

Separate integral into n subintervals

perform trap rule for each interval multiplied by h

46
New cards

Composite Simpsons rule

Separate integral into n subintervals

perform Simp rule for each interval multiplied by h

47
New cards

Composite Error

Trap Rule - Ch2 max| f’’(x)|

Midpoint Rule - Ch2 max| f’’(x)|

Simpsons Rule - Ch4 max| f’’(x)|

48
New cards

Composite Rules on MATLAB

see test

49
New cards

IVP

  1. Set z(t) = y1 and continue from there

  2. Rearrange OG equation to be z’’’(t) = . . .

  3. Substitute y equation into z’’’(t)

  4. Write found equations in vector form

  5. Apply initial conditions