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 test case regarding failure of series/limit unless the expression is simplified #20674

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Shardul555
Copy link

@Shardul555 Shardul555 commented Dec 26, 2020

References to other Issues or PRs

#9173

Brief description of what is fixed or changed

Initially the issue was the failure of series/limit unless the expression is simplified first, but it is resoved in current master.
So I have added test case addressing this one.

Release Notes

NO ENTRY

Initially the issue was the failure of series/limit unless the expression is simplified first, but it is resoved in current master.
So I have added test case addressing this one.
@sympy-bot
Copy link

sympy-bot commented Dec 26, 2020

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.

  • No release notes entry will be added for this pull request.
Click here to see the pull request description that was parsed.
#### References to other Issues or PRs
#9173


#### Brief description of what is fixed or changed

Initially the issue was the failure of series/limit unless the expression is simplified first, but it is resoved in current master.
So I have added test case addressing this one.


#### Release Notes
<!-- BEGIN RELEASE NOTES -->

NO ENTRY

<!-- END RELEASE NOTES -->

@Shardul555
Copy link
Author

Shardul555 commented Dec 27, 2020

@czgdp1807 Can you please guide me with this pull request what next to be done so that all checks will pass

@suryam35
Copy link
Contributor

@Shardul555 your file contains trailing whitespaces
Refer here https://github.com/sympy/sympy/wiki/Development-workflow to understand the workflow process

…on is simplified

Added the test case regarding failure of series/limit unless the expression is simplified. It is improvement on last commit as last one had unnecessary whitespaces.
@@ -202,6 +202,13 @@ def test_issue_9549():
assert series(y, x, oo) == x**(-5) - 1/x**4 + x**(-3) + 1/x + O(x**(-6), (x, oo))


def test_issue_9173():
var('p_0 p_1 p_2 p_3 b_0 b_1 b_2')
Copy link
Contributor

Choose a reason for hiding this comment

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

You are not storing them in variables which you are using, that's why test is failing.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for guidance @sidhu1012

…ified

This pull request will add the test case regarding failure of series problem until th the expression is simplified using .simplify() function.
@@ -202,6 +202,14 @@ def test_issue_9549():
assert series(y, x, oo) == x**(-5) - 1/x**4 + x**(-3) + 1/x + O(x**(-6), (x, oo))


def test_issue_9173():
from sympy import var
Copy link
Contributor

Choose a reason for hiding this comment

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

Imports should go on top of file.

Copy link
Author

Choose a reason for hiding this comment

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

Ok I will do it after these checks will be completed.

Copy link
Member

Choose a reason for hiding this comment

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

And var should not be used in library code.

Copy link
Author

Choose a reason for hiding this comment

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

Ok thank you @jksuom ,so can you suggest me what to use instead of var or simply where I will find the rules related to uses of variables.

Copy link
Member

Choose a reason for hiding this comment

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

As used in other tests like test_issue_12791, you can use symbols instead

@Shardul555 Shardul555 changed the title ["WIP"]Added test case regarding failure of series/limit unless the expression is simplified Added test case regarding failure of series/limit unless the expression is simplified Dec 29, 2020
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.

None yet

7 participants