We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gausslegendre
MWE:
julia> using FastGaussQuadrature, LinearAlgebra, Plots julia> errors = Float64[] Float64[] julia> for n in 6:100 nodes, weights = gausslegendre(n) push!(errors, norm([dot(weights, nodes.^p) - 2/(1+p) for p in 2:2:10], Inf)) end julia> plot(6:100, errors)
The precision with $n\le60$ is worse than with $n>60$, and FastGaussQuadrature.rec can be improved.
FastGaussQuadrature.rec
FastGaussQuadrature.jl/src/gausslegendre.jl
Lines 46 to 52 in 03b6fb5
The text was updated successfully, but these errors were encountered:
At least, it seems that the threshold 60 can be replaced with 40.
julia> using FastGaussQuadrature, LinearAlgebra, Plots julia> errors = Float64[] Float64[] julia> for n in 6:100 nodes, weights = gausslegendre(n) push!(errors, norm([dot(weights, nodes.^p) - 2/(1+p) for p in 2:2:10], Inf)) end julia> plot(6:100, errors) julia> errors_asy = Float64[] Float64[] julia> for n in 6:100 nodes, weights = FastGaussQuadrature.asy(n) push!(errors_asy, norm([dot(weights, nodes.^p) - 2/(1+p) for p in 2:2:10], Inf)) end julia> plot!(6:100, errors_asy, ylims=(0, 2e-15))
Sorry, something went wrong.
No branches or pull requests
MWE:
The precision with$n\le60$ is worse than with $n>60$ , and
FastGaussQuadrature.rec
can be improved.FastGaussQuadrature.jl/src/gausslegendre.jl
Lines 46 to 52 in 03b6fb5
The text was updated successfully, but these errors were encountered: