1/48
Looks like no tags are added yet.
63
Converting Base 10 to a lower base (‘binary’) Integers
“Divide divide divide, Read up!!!”
Remainders are not the decimal points!!
Converting Base 10 to a lower base (‘binary’) Fractions
“Multiply, Multiply, Multiply, Read Down!!”
For binary all numbers should be either 1 or 0
Basic Variables (liner sys. of equations)
The variables (x1, x2, etc.) attached to the pivot columns
Free Variables
All variables that are NOT basic variables
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)
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)
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
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
Are computer numbers evenly spaced?
NO
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.
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
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)
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)
Finite difference Approximations
Used during Boundary value problems to find multiple unknown with different approx. equations based on the location in the equation/matrix.
Forward Difference Approximation

Backward Difference Approximation

Centered First Derivative

Centered Second Derivative

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.

Boundary Value steps
Divide the domain into N equal subintervals, resulting in n + 1 unknowns (y1, y2,2 y3, etc.) h = (b -a)/n ←- width of subintervals
For each unknown (yn) write an appropriate equation + reduce
Rewrite equations into matrix
Solve for unknown + graph in MATLAB
Boundary Value problem in MATLAB
See paper
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
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
Bisection Method
Calculate the midpoint —> c = (a +b)/2
Evaluate F( c )
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)
Repeat
Bisection Method MATLAB
Newtons Method

Newtons Method MATLAB
See paper
Secant Method

Secant Method on MATLAB
see paper
Modified Secant Method

Lagrange Interpolation

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

Inverse Quadratic Interpolation

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)
Order of Convergence
Bisection Method - 1
Newtons Method - 2
Secant Method - 1.618
Mullers Method - 1.84
Invers quad interp - 1.84
Newtons Method for root finding
see paper
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.
Weierstrass Approximation thm
| f(x) - p(x) | < E
for every x E [a,b]
Linear Splines

Cubic splines

Midpoint Rule

Trapezoidal Rule

Simpsons Rule

Composite Midpoint rule
Separate integral into n subintervals
perform Midpoint rule on each individual subinterval
Composite Trapezoidal rule
Separate integral into n subintervals
perform trap rule for each interval multiplied by h
Composite Simpsons rule
Separate integral into n subintervals
perform Simp rule for each interval multiplied by h
Composite Error
Trap Rule - Ch2 max| f’’(x)|
Midpoint Rule - Ch2 max| f’’(x)|
Simpsons Rule - Ch4 max| f’’(x)|
Composite Rules on MATLAB
see test
IVP
Set z(t) = y1 and continue from there
Rearrange OG equation to be z’’’(t) = . . .
Substitute y equation into z’’’(t)
Write found equations in vector form
Apply initial conditions