Commit Graph
1 Commits
Author SHA1 Message Date
waozi 1138769821 Add matrix analysis, Owen's T, and beta functions with 1:1 gnumeric parity
MPSEUDOINVERSE ports goffice's quad pseudo-inverse (QR with
degenerate-diagonal zeroing, the (R^T R + delta I)^-1 seeding, ten
refinement steps of (2I - B R) B, and the transposed-input case) and
LEVERAGE ports go_linear_regression_leverage (per-row forward/back
solves of the scaled QR system with the exact quad dot product).
OWENT ports all six series methods of gnumeric's owent with the full
range/method dispatch table, and BETA ports qbetaf on a new QGammaF
plus PochhammerSmallN/GammaErrorFactor chain.

Getting BETA bit-exact exposed three latent bugs in the quad core
back-ported from goffice long ago but never exercised until now:
Q_Exp was a mangled stub (now e^a via the quad power with the
double-double constant for e), Q_PowFrac lost the 1m-mode
accumulation so fractional powers collapsed to zero, Q_Pow clobbered
its base when result and input aliased, and Q_Floor was missing the
off-by-one correction's third case. qfactf's fractional path now uses
the exact stepping algorithm (round-split, up-stepping to 20, and
PochhammerSmallN) instead of libm tgamma, which removes the last
1-ULP divergences. New analysis_functions fixture with 27 rows; 20
fixtures now 1:1 with ssconvert including round-trips.
2026-09-05 09:46:16 -03:00