Giter Site home page Giter Site logo

anuraganalog / numerical-analysis Goto Github PK

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

This repo contains some of the well-known algorithms for Numerical Analysis.

License: GNU General Public License v3.0

C 94.86% Python 5.14%
runge-kutta milne picard euler gauss-seidel gauss-jacobi lu-decomposition gauss-elimination gauss-jorda inverse-using-guass-jordan

numerical-analysis's Introduction

Numerical Analysis

This repository contains some of the algorithms for root finding methods and interpolation.

  1. birgevieta: The program takes coeffients of the equation, their corresponding powers and an approx. root as the input and computes the root for the given polynomial equation using Birge-Vieta method.
  2. graeffe: The program takes coeffients of the equation and their corresponding powers as the input and computes the root for the given polynomial equation using Graeffe's method.
  3. descartes: The program takes coeffients and their corresponding powers as the input and computes the sign of the roots for the given polynomial equation using Descartes rule of sign.

Bi-section method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Bisection method.

Secant method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Secant method.

Regular Falsi method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Regular Falsi method.

Newton Raphson method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Newton Raphson method.

Muller method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Muller method.

Chebyshev method: In this directory, there are algorithms for finding roots for any quadratic equation and some of the of the given transcedental equations using Chebyshev method.

Horner's method:

This is generally called as synthetic division of the polynomial functions, In this directory,
  1. polylinear: The program takes coeffients of the equation, their corresponding powers and a root as the input and computes the root for the given polynomial equation using Horner's method.
  2. polyquad: The program takes coeffients of the equation, their corresponding powers and coeffients of the quadratic which is a factor of the polynomial as the input and computes the root for the given polynomial equation using Horner's method.

Ramanujan method: The program takes coeffients of the equation, their corresponding powers as input and computes the smallest real root for the given polynomial equation using Ramanujan's method.

Cardano method: The program takes coeffients of a cubic equation as inputs and computes a real root and a pair of complex roots, this method is similar to the perfect-square method to quadratic equations, is a standard way to find a real root of a cubic equation and one more thing it works only for the cubic equation which has complex roots and a real root.

Interpolation

In this directory, you can find some algorithm for interpolating the given data-points.

Lagrange interpolation: This program takes the data-points as input and computes the lagrange's polynomial for nth order and takes the value at given x and gives the value of f(x).

Newton divided difference interpolation: This program takes the data-points as input and computes the newton divided differences for nth order and takes the value at given x and gives the value of f(x).

Iterated interpolation: This program takes the data-points as input and computes the iterated interpolation for nth order and takes the value at given x and gives the value of f(x).

Gregory-Newton forward difference interpolation: This program takes the data-points as input and computes the newton divided differences in terms of forward differences for nth order and takes the value at given x and gives the value of f(x).

Gregory-Newton backward difference interpolation: This program takes the data-points as input and computes the newton divided differences in terms of backward differences for nth order and takes the value at given x and gives the value of f(x).

Integration

In this directory, you can find some algorithm for integration when given an interval and the step length of the sub-intervals.

Simphson's 1/3 rule: This program takes the limits of the interval and computes the integration the given static function using simphson's 1/3 rule.

Simphson's 3/8 rule: This program takes the limits of the interval and computes the integration the given static function using simphson's 3/8 rule.

Trapezoidal rule: This program takes the limits of the interval and computes the integration t he given static function using trapezoidal's rule.

Linear-Equations

In this directory, you can find some algorithm for solving system of equations.

Gauss-Elimination: This program takes the co-efficients of x,y,z and constant of n system of equations and order of the matrix as input and computes the solution by reducing the matrix into a upper triangular matrix.

Gauss-Jordan Elimination: This program takes the co-efficients of x,y,z and constant of n system of equations and order of the matrix as input and computes the solution by reducing the matrix into a diagonal matrix.

Inverse using Gauss-Jordan Elimination: This program takes the co-efficients of x,y,z of n system of equations and order of the matrix as input and finds the inverse of the matrix.

LU Decomposition: Decomposes the given matrix into lower and upper triangular matrices and finds the solution by backward-subsitution followed by forward-subsitution.

Gauss-jacobi: This is a iterative method for finding the roots by taking initial values as input, this can be done in two ways using matrices and other is normal solving.

Gauss-seidel: This is similar to the jacobi method instead using the older values it uses the recently computed roots in the same iteration for more accuracy.

Ordinary Differential Equations

In this directory, you can find some algorithms for getting the data-points for some of the Differential Equations.

Euler Method: It takes two initial points as input and the value of Δx as input and computes the value at x0+i(Δx), where x0 is the initial point by using euler's method. NOTE: This method is only used for first order differential equations.

Improved Euler Method: The inputs are same as the euler's method but it takes some more iterations to finalize each value at yi to more accurate results simply it follows as a iterative method.

Picard's Method: In this method, we compute the recursive integration in the given initial values and find out the given integral value at the given point.

Milne's Method: For this method we assume that we alraedy know three consecutive values and use the newton divided difference formula to predict the approximte value of y in terms of y' and check by using the correctors formula.

Runge-kutta Method: The inputs are same as the euler's method in this it computes the function value at each increment based on the slope at different points of the curve.

numerical-analysis's People

Contributors

anuraganalog avatar nidhinivedita6 avatar

Watchers

 avatar

Forkers

nidhinivedita6

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.