Skip to content

[tree,hist] do not silently hide sqrt of negative value in T(Tree)Formula#22756

Open
ferdymercury wants to merge 2 commits into
root-project:masterfrom
ferdymercury:patch-23
Open

[tree,hist] do not silently hide sqrt of negative value in T(Tree)Formula#22756
ferdymercury wants to merge 2 commits into
root-project:masterfrom
ferdymercury:patch-23

Conversation

@ferdymercury

Copy link
Copy Markdown
Collaborator

return nan instead of sqrt(abs(value))

Fixes #22755

Was like that since the early beginnigns https://github.com/root-project/root/blame/dd588ebc2c01182af573ea9ac7ce2ddcbc734b6e/treeplayer/src/TTreeFormula.cxx

return nan instead of sqrt(abs(value))

for consistency with TTreeFormula
@ferdymercury ferdymercury marked this pull request as ready for review July 5, 2026 14:05
@ferdymercury ferdymercury changed the title [tree] do not silently hide sqrt of negative value [tree,hist] do not silently hide sqrt of negative value in T(Tree)Formula Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 11h 59m 49s ⏱️
 3 872 tests  3 839 ✅ 0 💤 33 ❌
78 775 runs  78 742 ✅ 0 💤 33 ❌

For more details on these failures, see this check.

Results for commit 85307bd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTreeFormula: sqrt() evaluates sqrt(abs(x)) for negative arguments

1 participant