-
-
Notifications
You must be signed in to change notification settings - Fork 482
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 crash and remove pexpect-Maxima usage in Y(m,n) #20939
Comments
Dependencies: 16813 |
comment:1
This depends on the associated Legendre polynomials being implemented, e,g, #16813. |
Changed dependencies from 16813 to #16813 |
comment:3
It won't be dependent on |
This comment has been minimized.
This comment has been minimized.
Changed dependencies from #16813 to none |
Commit: |
New commits:
|
Author: Ralf Stephan |
comment:7
LGTM modulo Check that :trac:`20939` is fixed::
sage: spherical_harmonic(3,2,1,2*pi/3)
1/240*sqrt(30)*(-15*I*sqrt(7)*sqrt(3) -
- ...15*sqrt(7))*cos(1)*sin(1)^2/sqrt(pi)
+ ... + 15*sqrt(7))*cos(1)*sin(1)^2/sqrt(pi)
"""
if n in ZZ and m in ZZ and n > -1:
if abs(m) > n:
return ZZ(0)
- if (m == 0 and theta.is_zero()):
+ if m == 0 and theta.is_zero():
return sqrt((2*n+1)/4/pi) |
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
That doesn't work as given. First the plus is a minus, and then the space after the ellipsis will make it fail too. I'll assume the last commit is still what you wanted and set positive. Just revert if not. Thanks for the review. |
comment:10
So the New commits:
|
Changed branch from u/rws/remove_pexpect_maxima_usage_in_y_m_n_ to u/tscrim/remove_pexpect_maxima_in_ymn-20939 |
comment:23
Would it be possible to have a test to make sure this stays fixed? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:25
This commit contains a test for the specific |
comment:26
Thanks. Now back to the buildbots. |
comment:27
I don know what Volker will report if anything but now I have a segfault in
|
comment:28
Confirmed. I'm sorry. With Pynac changes I have a testing procedure in place here, but with Python I was relying on patchbot. This issue is also somewhat unusual as to the surprising problems presented. |
comment:29
Same here... |
comment:30
Positive stuff for me, it made me realise that some bits of |
Upstream: Fixed upstream, in a later stable release. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:34
Let's try again. |
Changed branch from u/rws/remove_pexpect_maxima_in_ymn-20939 to |
The eval function of
SphericalHarmonic
uses pexpect-Maxima. Since this needs only a formula the call to Maxima could be replaced by a few lines of Python.http://dlmf.nist.gov/14.30.E1
Replacing pexpect-Maxima is part of #17753.
Depends on #21614
Depends on #21963
Upstream: Fixed upstream, in a later stable release.
Component: symbolics
Author: Ralf Stephan
Branch/Commit:
bb4630f
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/20939
The text was updated successfully, but these errors were encountered: