-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Implemented expand_trig for csch, sech and coth #21567
Conversation
…h cases handled; 1. argument is a sum of terms, 2. (for coth) argument is an integer multiple of another expression
✅ 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. Your release notes are in good order. Here is what the release notes will look like:
This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.9. Click here to see the pull request description that was parsed.
Update The release notes on the wiki have been updated. |
@@ -327,6 +327,11 @@ def test_coth(): | |||
x = Symbol('x', extended_real=True) | |||
assert coth(x).as_real_imag(deep=False) == (coth(x), 0) | |||
|
|||
assert expand_trig(coth(2*x)) == (coth(x)**2+1)/(2*coth(x)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces around +
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and below, too
Yg = numbered_symbols('Y') | ||
Y = [next(Yg) for i in range(n)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be possible to use CX
instead of Y
.
Thank you for the feedback. I see you have merged it with the changes. I have looked through what you have done and I can use this in the future. |
Fixes #21495
Implemented expand_trig for csch, sech and coth. Both cases handled; 1. argument is a sum of terms, 2. (for coth) argument is an integer multiple of another expression