Skip to main content

Module weighted

Module weighted 

Source
Expand description

Integrals with a known difficult weight, the cases of SciPy’s quad(weight=…) (QUADPACK’s QAWO, QAWF, QAWS and QAWC): oscillatory cos ωx and sin ωx on finite and semi-infinite intervals, algebraic-logarithmic endpoint singularities (x − a)^α (b − x)^β [log], and Cauchy principal values ⨍ f(x)/(x − c) dx. Each uses a method suited to the weight rather than a port of QUADPACK’s modified Clenshaw-Curtis moments; the results are compared with SciPy in the book.

See the book entry Vector integrands and weighted quadrature.

Structs§

WeightedOptions
Tolerances for quad_weighted (SciPy’s quad defaults).
WeightedResult
The result of quad_weighted.

Enums§

LogFactor
Which logarithmic factors an algebraic weight carries.
Weight
The weight w(x) in ∫ f(x) w(x) dx.

Functions§

quad_weighted
∫_a^b f(x) w(x) dx for the weights of SciPy’s quad(weight=…):