GithubHelp home page GithubHelp logo

merkouris148 / numerical-analysis-algorithms Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38 KB

Some numerical analysis algorithms, from scratch, written in Octave

License: GNU General Public License v3.0

MATLAB 100.00%
numerical-analysis numerical-integration eigenvalues interpolation-methods root-finding-methods gauss-elimination

numerical-analysis-algorithms's Introduction

numerical-analysis-algorithms

Some numerical analysis algorithms, written from scratch in Octave.

Contents

Root finding in continuous non linear functions

  • bisection.m a bisection method implementation. The bisection method converges lineary.

  • newton_raphson.m an implementation of the Newton-Ramphson's method. The Newton-Raphson's method converges quadraticly, if certain criteria are met.

  • b_nr.m a combination of the Newton-Raphson's method. The algorithm, intilally, finds a solution using the Newton-Raphson's method (which is a heavy computational task) and then enchanches the solution's estimation using (the much simpler) bisection method.

Linear algebra methods

  • gauss_partial_pivoting.m an implementaion of the Gauss elimination using partial pivoting in order to avoid rounding errors.

  • gaussian_solve.m after using the gauss_partial_pivoting to transform a matrix in an upper triangular, you may use this method to solve the linear system.

  • gaussina_inv.m this algorithm uses the gauss_partial_pivoting and the gaussian_solve methods to calculate the invert of a given matrix.

Ιnterpolation

  • @newton_dd_interpolation a class implementing Newton's interpolation method, using divided differences. The class provides the method @newton_dd_interpolation/estimate.m to estimate the value of a function in a given point. To calculate the divided differences, we use the algorithm divided_differences.m. Also the user may add a new known point of the estimated function via the classes method @newton_dd_interpolation/add_point.m. In order to recalculate the interpolation polynomial more efficiently, we use the divided_differences_incrimental.m.

  • @newton_fd_interpolation a class implementing Newton's interpolation method, using forward differences. The class provides the method @newton_fd_interpolation/estimate.m to estimate the value of a function in a given point. To calculate the divided differences, we use the algorithm forward_differences.m. Also the user may add a new known point of the estimated function via the classes method @newton_fd_interpolation/add_point.m. In order to recalculate the interpolation polynomial more efficiently, we use the forward_differences_incrimental.m.

Eigenvalues

  • power_iteration.m an implemantation of the power iteration method for finding the greatest (in absolute value) eigenvalue. The user may use different iteration steps to calculate the gretest eigenvalue:

    The preffered variant of the algorithm is passed as last parameter. The default iteration step is the modified step.

Numerical quadrature (integration)

All the functions above for numerical quadrature are using the method split_intertval.m as helper function.

Notes

The code above has been tested in GNU Octave, version 5.1.0.

numerical-analysis-algorithms's People

Contributors

merkouris148 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.