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

Added code to check summation of convergent series #16266

Closed
wants to merge 9 commits into from
Closed

Added code to check summation of convergent series #16266

wants to merge 9 commits into from

Conversation

dnabanita7
Copy link
Contributor

@dnabanita7 dnabanita7 commented Mar 15, 2019

Fixes #14579

Brief description of what is fixed or changed

I have added code in eval_sum to check if the series is convergent and do calculations specifically.
I have added some tests.

Other comments

Ihaven't added added any code to fix or check and calculate sum for floating point integers.If granted I will add it.For now,only symbolically we can calculate.

Release Notes

  • concrete
    • changed in summation.py and added some tests

#Fixes 14579 
Sum(sqrt(n), (n, 1, oo)) didn't calculate or simplified previously.It gave only its corresponding symbolic representation.As discussed in the issue thread,positive divergent series should return oo. Fixed in line 203-204.
Add some tests for issue_16250
@sympy-bot
Copy link

sympy-bot commented Mar 15, 2019

Hi, I am the SymPy bot (v142). 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:

  • concrete
    • changed in summation.py and added some tests (#16266 by @Naba7)

This will be added to https://github.com/sympy/sympy/wiki/Release-Notes-for-1.4.

Note: This comment will be updated with the latest check if you edit the pull request. You need to reload the page to see it.

Click here to see the pull request description that was parsed.

Fixes #14579 

#### Brief description of what is fixed or changed
I have added code in eval_sum to check if the series is convergent and do calculations specifically.
I have added some tests.

#### Other comments
Ihaven't added added any code to fix or check and calculate sum for floating point integers.If granted I will add it.For now,only symbolically we can calculate.

#### Release Notes



<!-- BEGIN RELEASE NOTES -->
* concrete
   * changed in summation.py and added some tests 
<!-- END RELEASE NOTES -->

@oscargus
Copy link
Contributor

It would have been better to continue in #16250 as there you had got it into a separate branch, not on your master.

@dnabanita7
Copy link
Contributor Author

yes

@dnabanita7 dnabanita7 closed this Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't solve Sum in sqrt
4 participants