Coder Social home page Coder Social logo

dhruvj22 / numerical-methods Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 328 KB

Numerical Methods

License: MIT License

Jupyter Notebook 100.00%
numerical-methods numerical-integration numerical-differentiation numerical-continuation linear-equation-solver interpolation-methods root-finding-algorithms

numerical-methods's Introduction

Numerical Methods

This repository consists of various Numerical Methods algorithms that I wrote as part of a graduate level numerical methods course that I took at Purdue Unviersity, through my Astrodynamics research and out of my curiosity to investigate algorithms that can solve non-trivial mathematical problems.

Setup

The algorithms are implemented in Jupyter lab by leveraging numpy array. There are 6 files focused on each problem and various method for each problem are implemented. A discussion of the algorithms through examples is included to compare performance and assumptions.

List of methods implemented

  1. Root-finding algorithms

    • Bisection method
    • Newton's method (Newton-Raphson method)
    • Secant method
    • Fixed-point iteration method
  2. Linear Equation solvers

    • Gaussian Elimination with No Pivoting(opt = 1) and Scaled Partial Pivoting (opt = 2)
    • Conjugate Gradient Method (Minimization Method)
    • Gauss-Sidel Method (Splitting Method)
    • Jacobi Method (Splitting Method)
    • SOR Method (Splitting Method)
  3. Numerical interpolation and Curve Fitting

    • Lagrange's form of the interpolation polynomial
    • Newton's form of the interpolation polynomial
  4. Numerical Integration

    • Midpoint Rule
    • Trapezoidal Rule
    • Simpson's Rule
    • Forward Euler's Method
    • Backward Euler's Method
    • Runge-Kutta 4th order
    • Composite Trapezoidal Rule
    • 2-Point Gaussian Quadrature Rule
    • 3-Point Gaussian Quadrature Rule
  5. Numerical Differentiation

    • Forward Differentiation
    • Central Differentiation
    • Complex Step Differentiation
  6. Differential Algebraic Equation / Partial Differenital Equation solvers

    • 1D Heat Equation
    • Advect Eqation
    • Wave Equation
    • Laplace Equation (Contour Plot!)
  7. Numerical Continuation

    • Natural Paramter Continuation
    • Pseudo-arc length continuation

Checkout my contribution to Poliastro or part of my research code to see the implementation of Numerical Continuation schemes

Reference

  • "A Friendly Introduction to Numerical Analysis" by Brian Bradle, 2006.
  • "The Complex-Step Derivative Approximation" by Martins, Strudza and Alonso

numerical-methods's People

Contributors

dhruvj22 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.