Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of exponentiation (#11659)
- Disable simplification `x^0.5 => sqrt(x)` when `x` is negative in the old simplification module. - Change the check added during code generation for a 0.5 exponent to use the same `Invalid root` error message as for other exponents instead of mentioning `sqrt`, since that's an implementation detail that only obscures the actual issue.
- Loading branch information
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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