Numerical Analysis – C++ Programs for various techniques

Algebraic and transcendental equations

  1. To find the roots of an equation(algebraic or transcendental) by Bisection Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To find the roots of an equation(algebraic or transcendental) by Secant Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  3. To find the roots of an equation(algebraic or transcendental) by Newton-Raphson Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Linear Equations & Eigenvalue Problem

  1. To find the roots of linear  equations by Gauss Elimination Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To find the roots of linear equations by Gauss Seidel Iterative Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  3. To find the eigen value and eigen vector of matrix by iterative method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Interpolation:

  1. To find the forward difference table from a given set of data values.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To find the backward difference table from a given set of data values.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Curve fitting

  1. To fit a straight line to a given set of data values.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To fit a polynomial to a given set of data values.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  3. To fit an exponential function to a given set of data values.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Differentiation

  1. To find the first and second derivatives near the beginning of the table values of (x,y).
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To find the first and second derivatives near the end of the table values of (x,y).
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Integration

  1. To evaluate a definite integral by trapezoidal rule.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To evaluate a definite integral by Simpson’s 1/3 Rule.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  3. To evaluate a definite integral by Simpson’s 3/8 Rule.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  4. To evaluate a definite integral by Gauss Quadrature Rule.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

Differential Equations

  1. To solve a differential equation by Euler’s Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)
  2. To solve a differential equation by Modified Euler’s Method.
    Links:               C++ Program               Lab Write-Up(Flow-Chart and Algorithm)

PhD researcher at Friedrich-Schiller University Jena, Germany. I'm a physicist specializing in theoretical, computational and experimental condensed matter physics. I like to develop Physics related apps and softwares from time to time. Can code in most of the popular languages. Like to share my knowledge in Physics and applications using this Blog and a YouTube channel.
[wpedon id="7041" align="center"]

3 thoughts on “Numerical Analysis – C++ Programs for various techniques

  1. Hello Manas, really interesting posts you have here. I myself am trying to work on numerical simulations in C++. I wanted to ask if you have any positive leads on plotting the data for graphs. I have tried some resources but have come up empty. I am working on a windows computer using VSCode. Please do let me know if you have any positive leads.

    Thank you

    Best Regards
    Ujjwal Kanth

      1. Thank you very much for your reply. I was actually looking for some interface based plotting libraries and I can see that you are directly plotting from gnuplot bash. If possible would recommend any such libraries (gnuplot or matplotlib). I have tried some of them but I am facing problems installing and running them.

        Thank you for your time.

Leave a Reply

Your email address will not be published. Required fields are marked *