quadax.TanhSinhRule

class quadax.TanhSinhRule(order: int = 61, norm: Callable | float | int = inf)Source

Integrate a function from a to b using a fixed order Tanh-Sinh trapezoidal rule.

Integration is performed using an order n rule with error estimated using an embedded n//2 order rule.

Parameters:
  • order (int) – Order of integration scheme. Must be odd.

  • norm (int, callable) – Norm to use for measuring error for vector valued integrands. No effect if the integrand is scalar valued. If an int, uses p-norm of the given order, otherwise should be callable.

Methods

integrate(fun, a, b, args)

Integrate a function from a to b using a nested rule.

norm(x)

Norm to use for measuring error for vector valued integrands.