-
-
Notifications
You must be signed in to change notification settings - Fork 559
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
symbolic placeholder for complex root #22024
Comments
comment:1
I think it's a bit more than a symbolic placeholder. It does seem there's an embedding in CC associated with it. So conversion to sage should probably be by converting to QQbar. Something like this might work:
but there will be a lot of corner cases to deal with too. |
comment:2
Replying to @nbruin:
To return a QQbar element would certainly be ideal. However, we're dealing at the moment with an unnecessary error, and returning a list of objects that show the polynomial plus the float value (and from which both can be extracted) would be sufficient to fix that defect. |
comment:3
To return a float with arbitrary precision we can use SymPy's |
Commit: |
Author: Ralf Stephan |
Dependencies: #24062 |
comment:6
Builds, passes I'm a bit stimyed by the usefulness of the result. If this is supposed to just allow the conversion of a SymPy computation into Sage, it does the job :
bit, as Nil's remarked, I find that we loose the properties of an answer in ==> But see my forthcoming comment to #11941 : we may have bigger fish to fry... |
comment:7
reviewer name, please |
Reviewer: Emmanuel Charpentier |
comment:8
Replying to @fchapoton:
Wups ! Fixed... |
comment:9
Replying to @EmmanuelCharpentier:
I like such minimal solutions. I mean if we're importing sympy we might as well use their code. Thanks for the review. |
Changed branch from u/rws/symbolic_placeholder_for_complex_root to |
comment:11
This is breaking on some patchbots: #24378 |
Changed commit from |
The Sage equivalent of SymPy's
CRootOf
(=ComplexRootOf
) is missing, which is just a symbolic placeholder for a solution that cannot be displayed symbolically.Defect because conversion from SymPy fails.
A possible solution for #11941 depends on this.
Depends on #24062
Component: symbolics
Author: Ralf Stephan
Branch:
ba171aa
Reviewer: Emmanuel Charpentier
Issue created by migration from https://trac.sagemath.org/ticket/22024
The text was updated successfully, but these errors were encountered: