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 TODO in sympy/functions/special/spherical_harmonics.py #21199
base: master
Are you sure you want to change the base?
Fix TODO in sympy/functions/special/spherical_harmonics.py #21199
Conversation
…nctions/special/spherical_harmonics.py
✅ Hi, I am the SymPy bot (v161). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.
Click here to see the pull request description that was parsed.
|
@anhnguyenphung It would be better to add test cases for your changes. |
…ical_harmonics.py
@sidhu1012 I have just added the test cases in sympy/functions/special/tests/test_spherical_harmonics.py to test my change. |
Any more review? |
We should return SymPy objects from routines like this. |
If this should handle symbolic m,n then the test should be |
Fix 'TODO: Assert |m| <= n otherwise we should return 0' in sympy/functions/special/spherical_harmonics.py
Add the case |m| > n to return 0 in _eval_rewrite_as_polynomial() and _eval_rewrite_as_cos() of the class Ynm(Function)
Release Note
NO ENTRY