Skip to content
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

Merged
merged 4 commits into from
Jun 5, 2021

Conversation

LucyMountain
Copy link
Contributor

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

  • functions
    • Implemented expand_trig for csch, sech and coth

…h cases handled; 1. argument is a sum of terms, 2. (for coth) argument is an integer multiple of another expression
@sympy-bot
Copy link

sympy-bot commented Jun 2, 2021

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.
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

<!-- BEGIN RELEASE NOTES -->
* functions
  * Implemented expand_trig for csch, sech and coth
<!-- END RELEASE NOTES -->

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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spaces around +

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and below, too

Comment on lines 892 to 893
Yg = numbered_symbols('Y')
Y = [next(Yg) for i in range(n)]
Copy link
Member

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.

@smichr smichr enabled auto-merge June 5, 2021 13:00
@smichr smichr merged commit d17907e into sympy:master Jun 5, 2021
@LucyMountain
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expand_trig for csch, sech
4 participants