- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 588
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
complex_root_of uses inexact index #24378
Comments
This comment has been minimized.
This comment has been minimized.
comment:4
That exact arguments are made inexact is a bug in itself. But that they are made complex (EDIT: in some machines) is beyond me. New commits:
|
Commit: |
Author: Ralf Stephan |
comment:5
Do you have an idea why this depends on the system? |
comment:6
Replying to @rwst:
Do you know where this happens? It seems to me that it is Pynac doing this. |
This comment has been minimized.
This comment has been minimized.
comment:8
Some sympy behavior depends on the presence/absence of gmpy2. We had this trouble before the upgrade. |
This comment has been minimized.
This comment has been minimized.
comment:10
Replying to @rwst:
Right, this ticket should just fix that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:15
Replying to @jdemeyer:
Indeed Perhaps it would be good to add in
Though I am curious about this sympy misbehavior. |
comment:16
Indeed there is a sympy bug that is now tracked at #24380. |
comment:17
|
comment:18
There was indeed a bug in sympy: #24380 needs review! |
comment:19
I suggest accepting my quick fix to resolve the blocker. Meanwhile I'm looking into Pynac. |
comment:20
If your only goal is to resolve the blocker doctest failures, then I think it is better to use |
comment:21
Replying to @videlec:
I disagree in this case. The result is exactly what was asked for. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
The expression |
Reviewer: Jeroen Demeyer |
comment:40
What is the meaning of the factor |
comment:41
Replying to @jdemeyer:
An approximation to |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:45
Ping? |
comment:46
You definitely do not want to use two symbolic functions here. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:48
Or better yet, use the sympy function
|
comment:49
Thanks both. I'll make a fresh branch. |
Changed branch from u/rws/24378-1 to u/rws/24378-2 |
comment:51
A minor note is that the results from New commits:
|
comment:52
Good for me if this passes patchbot testing. |
Changed branch from u/rws/24378-2 to |
When numerically evaluating
complex_root_of(a, k)
, the indexk
is passed as floating-point number:When
gmpy2
is installed, the index is even passed as complex number:CC: @rwst @EmmanuelCharpentier
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
277a403
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/24378
The text was updated successfully, but these errors were encountered: