The quadrature doc block advertises a six-argument Romberg/tanh-sinh form and max_panels = 0, both of which num_gauss_legendre and num_integrate reject
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- documentation
Research direction
Find the shared help text for num_gauss_legendre, num_clenshaw_curtis, and num_integrate; the issue does not name its file. Start by locating those help entries and checking each operator’s accepted arguments and max_panels validation. Update the docs to match the accepted calls and behavior, then verify that the separate Romberg and infinite integration operators are named as entry points.
Written by the indexing model from the issue text.
Description
The doc block shared by num_gauss_legendre, num_clenshaw_curtis and num_integrate describes argument lists that the operators do not accept: the six-argument "Romberg/tanh-sinh" form is rejected as an arity error, and num_integrate rejects max_panels = 0 although the same text says the first panel is evaluated even then.
suppressWarnings(suppressMessages(library(rssn)))
s <- rssn_session()
f <- rssn_callback(function(x) sin(x), s, signature = "(float) -> float")
p <- function(lbl, e) cat(sprintf("%-46s %s\n", lbl,
tryCatch(value_text(e), error = function(z) paste("ERROR:", conditionMessage(z)))))
p("gauss_legendre(a,b,tol,levels,evals,cb)",
call_value("num_gauss_legendre", 0, pi, 1e-12, 10, 2000, f, session = s))
p("clenshaw_curtis(a,b,tol,levels,evals,cb)",
call_value("num_clenshaw_curtis", 0, pi, 1e-12, 10, 2000, f, session = s))
p("integrate(..., max_panels = 0)",
call_value("num_integrate", 0, pi, 1e-12, 1e-12, 0, f, session = s))
p("integrate(..., max_panels = 1)",
call_value("num_integrate", 0, pi, 1e-12, 1e-12, 1, f, session = s))
gauss_legendre(a,b,tol,levels,evals,cb) ERROR: operator takes 5 arguments, got 6
clenshaw_curtis(a,b,tol,levels,evals,cb) ERROR: operator takes 5 arguments, got 6
integrate(..., max_panels = 0) ERROR: outside the domain of the operator: quadrature panel budget must be positive and fit usize
integrate(..., max_panels = 1) {value: 2, error: 0.00000000000002220446049250313, evaluations: 15, converged: true}
op_help("num_gauss_legendre") says, verbatim: "Fixed rules: a,b,order,max_evaluations,callback. Romberg/tanh-sinh: a,b,tolerance,max_levels,max_evaluations,callback. Semi-infinite rules: finite_bound,tolerance,max_evaluations,callback; ... Full infinite rule: tolerance,max_evaluations,callback." The first list is the only one that operator accepts — the other three belong to num_analysis_integrate_romberg_scaled, num_integrate_semi_infinite and num_integrate_infinite, which are separate operators. A reader who wants adaptive Romberg calls the documented six-argument form and gets an arity error with no pointer to the real entry point.
For the second half, op_help("num_integrate") says "The first panel is evaluated even if max_panels is zero", but the operator refuses the call outright: the panel budget is validated as "must be positive", so the documented behaviour (one panel, converged = false) is unreachable. max_panels = 1 is accepted and correctly returns converged: true for this integrand.
Both are contract text rather than computation: the numbers the operators do return are right (order-8 Gauss-Legendre is exact for x^13 on [0,1], order-16 Clenshaw-Curtis too).
rssn 0.3.0, R 4.6.2 binding, Windows x86_64.
- Dominant language
- Rust
- Stars
- 36
- Forks
- 3
- Avg merge
- 14h 51m
- Merged PRs (30d)
- 29
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Apich-Organization/rssn
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
area/numerical good first issue help wanted kind/doc-mismatch severity/5-trivial
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Apich-Organization/rssn#373 ·
Maintainers usually reply within 1 day
-
json_encode() re-emits a decoded empty JSON object as [], so {} and {"":1} are not round-trip stableOpenarea/api-bindings good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#361 ·
Maintainers usually reply within 1 day
-
area/statistics good first issue help wanted kind/wrong-result severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Apich-Organization/rssn#362 ·
Maintainers usually reply within 1 day
-
area/statistics good first issue help wanted kind/wrong-result severity/3-major
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Apich-Organization/rssn#358 ·
Maintainers usually reply within 1 day
All issues in Apich-Organization/rssn
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
tursodatabase/turso#13221 ·
Maintainers usually reply within 1 day
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day