Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix distribution of fractional power #9619

Merged
merged 1 commit into from Oct 28, 2022

Conversation

phannebohm
Copy link
Contributor

Related Issues

Fixes #9575

Purpose

Taking fractional exponents of negative numbers can be problematic. In certain cases distributing powers over products is not valid.

Approach

If the exponent has fractional part, only split positive factors.

TODO: split constants and redistribute signs.

@phannebohm phannebohm added bug COMP/OMC/Frontend Issue and pull request related to the frontend labels Oct 28, 2022
@phannebohm phannebohm self-assigned this Oct 28, 2022
@phannebohm phannebohm enabled auto-merge (squash) October 28, 2022 16:37
@phannebohm phannebohm merged commit 30d4f14 into OpenModelica:master Oct 28, 2022
@phannebohm phannebohm deleted the 9575-sqrt branch October 28, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug COMP/OMC/Frontend Issue and pull request related to the frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong symbolic solution of quadratic equation
1 participant