numerical-integration: Numerical integration.

[ bsd3, library, numerical ] [ Propose Tags ]

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3
Change log CHANGELOG.md
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2023 Stéphane Laurent
Author Stéphane Laurent
Maintainer laurent_step@outlook.fr
Category Numerical
Home page https://github.com/stla/numerical-integration#readme
Source repo head: git clone https://github.com/stla/numerical-integration
Uploaded by stla at 2023-09-18T18:43:12Z
Distributions NixOS:0.1.2.3
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 167 total (18 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-0.1.1.0

[back to package description]

numerical-integration

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.