GaussLegendreHist: 1d quadrature transformation

Description

Computes 1d Gauss-Legendre quadrature for a 1d function. Produces histogram as the output. The transformation is used in pair with GaussLegendre.

Arguments

  1. GaussLegendre instance.

Inputs

  1. hist.f — function, computed on sample points points.x of the corresponding GaussLegendre instance.

Outputs

  1. hist.hist — the histogram.

./tests/elementary/test_integral_gl1d.py -s

Implementation

See Implementation for description.