numerical-integration: Numerical integration.

[ bsd3, library, numerical ] [ Propose Tags ]

One-dimensional numerical integration using the NumericalIntegration C++ library.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,
Change log
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2023 Stéphane Laurent
Author Stéphane Laurent
Category Numerical
Home page
Source repo head: git clone
Uploaded by stla at 2023-09-18T18:43:12Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 46 total (46 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-09-18 [all 1 reports]

Readme for numerical-integration-

[back to package description]


One-dimensional numerical integration using the 'NumericalIntegration' C++ library.

Example. Integrate x² between 0 and 1 with desired relative error 1e-5 and using 200 subdivisions. Exact value: 1/3.

example :: IO IntegralResult -- value, error estimate, error code
example = integration (\x -> x*x) 0 1 1e-5 200
-- IntegralResult {_value = 0.3333333333333334, _error = 3.7007434154171895e-15, _code = 0}

The error code 0 indicates the success.