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
sqrt(abs(1+I)^2 + 14) evaluates to sqrt(16) instead of 4 #27897
Comments
comment:1
It looks like there is some double wrapping happening here:
here things seem to be still reasonable. However, this last result is "double wrapped":
and it looks like that's too deep for
that could be a red herring, though:
It means that
both lead to unexpectedly "held" expressions, but with different structures:
where
so perhaps both problems are solved if |
comment:2
As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9). |
Branch: public/27897 |
comment:4
I think the problem is gone:
This is with 9.3b6 on MacOS 10.15.7, but I get The PR adds a doctest. If the patchbots turn green, then I think we can close this ticket. New commits:
|
Commit: |
Author: Dave Morris |
comment:5
I don't have 9.3beta6 here, but I think the definition/parent of |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
You're right -- thanks for catching this! With 9.3b6, we still have:
Ticket #18036 changed the parent of I to be a number field. |
There is some weird undesirable "holding" going on:
Found in Ask SageMath question #46698: Sagemath not evaluating complicated expression.
Component: symbolics
Keywords: sqrt, abs, complex, hold, holding
Author: Dave Morris
Branch/Commit: public/27897 @
a330310
Issue created by migration from https://trac.sagemath.org/ticket/27897
The text was updated successfully, but these errors were encountered: