Skip to content

JunhyunB/Numerical-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numerical Analysis

This is the repository for scratch of Numerical Analysis with MATLAB.

Table of Contents

1. Roots of Equations

2. Linear Equation

3. Optimizaiton

main algorithm

while(1)
    xrold = xr;
    xr = (xl + xu) / 2;
    test = func(xl) * func(xr);
    if test < 0
        xu = xr;
    elseif test > 0
        xl = xr;

main algorithm

while(1)
    xrold = xr;
    fl = func(xl);
    fu = func(xu);
    xr = xu - fu * (xl - xu) / (fl - fu);
    test = fl * func(xr);
    if test < 0
        xu = xr;
    elseif test > 0
        xl = xr;

main algorithm

while(1)
    x1 = u;
    error = abs(x1 - x0);
    x0 = x1;
    u = func(x0);

main algorithm

while(1)
    x1 = x0 - u / v;
    error = abs(x1 - x0);
    x0 = x1;
    u = func(x0);
    v = df(x0);

main algorithm

while(1)
    x = x1 - v * (x1 - x0) / (v - u);
    x0 = x1;
    u = v;
    x1 = x;
    v = func(x1);
    error  = abs(x1 - x0);

2. Linear Equation

3. Optimizaiton

About

MATLAB code for Numerical Analysis Tutoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages