Skip to content

Fix movability flags for pow that straddles zero - #146

Merged
pavpanchekha merged 1 commit into
fix-fmin-fmax-movabilityfrom
fix-pow-movability
Feb 7, 2026
Merged

Fix movability flags for pow that straddles zero#146
pavpanchekha merged 1 commit into
fix-fmin-fmax-movabilityfrom
fix-pow-movability

Conversation

@pavpanchekha

Copy link
Copy Markdown
Contributor

If x straddles zero and you do pow(x, y), then we split x into a positive and negative half, compute pow separately on each, and union the results. But the issue is that the union preserves movability, whereas in fact refining x can result in a smaller interval that no longer straddles zero and thus doesn't do pow on positive or negative at all. The fix is simple: mobilize the interval after the union.

@pavpanchekha
pavpanchekha merged commit ffd873a into fix-fmin-fmax-movability Feb 7, 2026
1 check passed
@pavpanchekha
pavpanchekha deleted the fix-pow-movability branch February 7, 2026 21:24
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.

1 participant