Skip to content
Numerical integration methods as discussed on thoughts-on-cpp.com
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CMakeLists.txt
LICENSE
README.md
gaussLegendre.plt
gausslegendre.h
legendrePolynoms.png
main.cpp
newtonCotes.h
numericalIntegration.gif
romberg.plt
romberg.png
simpson.plt
simpson.png
trapezoidal.plt
trapezoidal.png

README.md

numericalIntegration

A collection of numerical integration methods, as discussed on thoughts-on-cpp.com.

Numerical Methods in C++ Part 1: Newton-Cotes Integration

  • Trapezoidal
  • Simpson rule
  • Romberg

Numerical Methods in C++ Part 2: Gauss-Legendre Integration

  • Gauss-Legendre

Getting Started

To get it up and running you just need to execute:

  • ~\numericalIntegration\build\cmake .. -DCMAKE_TOOLCHAIN_FILE={YOUR_PATH_TO_VCPKG}/scripts/buildsystems/vcpkg.cmake
  • ~\numericalIntegration\build\cmake --build .

You can execute the program by ./numericalIntegration

Screen capture of programm execution

Prerequisites

  • fmt external library used for formatting and printing results

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.