model-writtenrun 4767 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Joel Jacobson proposed making numeric_sqrt() precision more consistent across alternative DEC_DIGITS values and repairing a pow10-array assertion that prevented those configurations from compiling, while preserving normal DEC_DIGITS=4 behavior #1.
- Dean Rasheed questioned the formula for negative input weights, corrected an inconsistent example, and considered the separate compilation repair worthwhile despite alternative numeric bases being mostly historical #2.
- Joel submitted a sign-dependent formula, the compilation repair, and experimental configuration patches, reporting precision comparisons across three DEC_DIGITS values and correcting his earlier example #3.
- Dean demonstrated that the revised negative-weight formula remained incorrect and derived a lower bound using floor(arg.weight * DEC_DIGITS / 2 + 1), but raised readability and performance concerns about adopting it #4.
- Joel proposed documenting the derivation and using conditional compilation to preserve performance #5; Dean shortened the explanation and generalized the fast path to every even DEC_DIGITS value #6.
- Joel attached Dean's proposed code verbatim and reported successful tests showing improved precision consistency for DEC_DIGITS=1 and 2 with unchanged results for DEC_DIGITS=4 #7.
- Dean committed the unchanged compilation-fix component of #3 separately as 9a84f2947b, retaining the normal NBASE configuration.
- Dean committed the final square-root patch from #7 with comment cleanup as 0736fc1ceb, then confirmed completion and thanked Joel for testing; both substantive changes had landed by the thread's final message #8.