-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Suppose we want to find
$$
\int_0^\infty f(x) exp(-x) dx
$$
But we are not given
x, w= FastGaussQuadrature.gausslaguerre(150)
g = x -> sin(x)*exp(-x)
dot(w, g.(x).*exp.(x)) ≈ 0.5 # true
Great!
Uh oh:
x, w= FastGaussQuadrature.gausslaguerre(200)
g = x -> sin(x)*exp(-x)
dot(w, g.(x).*exp.(x)) |> isnan # true
If we had a weightedgausslaguerre
that returned w.*exp.(x)
instead of w
everything would be perfect. I suspect it's just as easy to calculate these weights as standard Gauss–Laguerre.
schneiderfelipe
Metadata
Metadata
Assignees
Labels
No labels