You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Analyser: fixed an issue with unit cancellation. - #1486
Preserve genuine tiny exponents instead of dropping dimensions
src/analyser.cpp:1133
This check erases genuine tiny exponents even when nothing cancels. In tinyExponentAmplifiedByPower, adding <unit units="second" exponent="0"/> after the existing 1e-16 entry deletes the second dimension, so the later power appears dimensionless instead of having units of seconds. Reversing those entries preserves the dimension. Two 1e-16 entries also disappear instead of becoming second^2 after the power. Use a cancellation rule that preserves meaningful small accumulated exponents rather than treating every near-zero sum as cancellation, and extend the regression tests to cover zero and same-sign contributions in both orders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1485.