Algebraic and transcendental equations
- To find the roots of an equation(algebraic or transcendental) by Bisection Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To find the roots of an equation(algebraic or transcendental) by Secant Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - 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
- To find the roots of linear equations by Gauss Elimination Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To find the roots of linear equations by Gauss Seidel Iterative Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To find the eigen value and eigen vector of matrix by iterative method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm)
Interpolation:
- To find the forward difference table from a given set of data values.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - 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
- To fit a straight line to a given set of data values.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To fit a polynomial to a given set of data values.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To fit an exponential function to a given set of data values.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm)
Differentiation
- 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) - 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
- To evaluate a definite integral by trapezoidal rule.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To evaluate a definite integral by Simpson’s 1/3 Rule.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To evaluate a definite integral by Simpson’s 3/8 Rule.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To evaluate a definite integral by Gauss Quadrature Rule.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm)
Differential Equations
- To solve a differential equation by Euler’s Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm) - To solve a differential equation by Modified Euler’s Method.
Links: C++ Program Lab Write-Up(Flow-Chart and Algorithm)
Ph.D. researcher at Friedrich-Schiller University Jena, Germany. I’m a physicist specializing in computational material science. I write efficient codes for simulating light-matter interactions at atomic scales. I like to develop Physics, DFT, and Machine Learning related apps and software from time to time. Can code in most of the popular languages. I like to share my knowledge in Physics and applications using this Blog and a YouTube channel.
[wpedon id="7041" align="center"]
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
Check these out
https://www.bragitoff.com/category/compu-geek/c-programs/plots-and-graphs/
These use gnu plot. But I prefer matplotlib these days.
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.