Compute the generic Tsit5 interpolant coefficients to full precision #5131
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 240 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.328
Real PR Conversation Timeline
1 comments
"Review active on #5131"
general
weight: 0.35
oscardssmith
The generic
Tsit5Interp(::Type{T}), used for everyTother thanFloat32/Float64, has coefficients that are accurate to only about 1e-17. They are the paper's factored polynomials, whose roots are printed to 16–19 digits, multiplied out. For example,r11is0.99999999999999997428…where the exact value is 1, andr14andr24are Float64 literals. As a result,BigFloatdense output (saveat,sol(t), continuous callbacks) stops improving at about 1e-22 while the steps reach the tolerance. Example:u' = uat 128 bits withabstol = reltol = 1e-24. The step error is 7.8e-26 and thesaveaterror is 5.9e-22, or 1.2e-25 with this PR.This PR recomputes the coefficients from the tableau and the conditions that define the dense output: order 4 for every Θ,
bᵢ(1) = bᵢ, continuous derivatives at both ends of the step, and the paper's choiceb₇Θ = 5/2 Θ²(Θ - 1)(Θ - 3/5). Seven coefficients are exact rationals (r11 = 1,r22, r23, r24 = 0.1317, -0.2234, 0.1017, andr72, r73, r74). The others are given to 86 digits, like the tableau. TheFloat32/Float64method is unchanged.Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Both new tests fail on master. The interpolant conditions have a residual of 7.2e-17, against the 1e-70 bound. The
saveaterror is 5.9e-22, against the 1e-23 bound.The
Float64r22 = 0.13169999999999998is 1 ulp from0.1317. It is left unchanged so thatFloat64results stay bit-identical.