# sympy/sympy

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

# integrate(cos(x)**2 / (1-sin(x))) gives too complicated answer #4511

Open
opened this Issue May 9, 2009 · 3 comments

## Comments

Projects
None yet
3 participants

### sympy-issue-migrator commented May 9, 2009

 ``````In [1]: integrate(cos(x)**2 / (1-sin(x))) Out [2]: fail :) But should get x - cos(x) instead :) `````` Original issue for #4511: http://code.google.com/p/sympy/issues/detail?id=1412 Original author: https://code.google.com/u/111211129517653688844/ Original owner: https://code.google.com/u/111211129517653688844/

### sympy-issue-migrator commented May 9, 2009

 ``````Issue 1413 has been merged into this issue. `````` Original comment: http://code.google.com/p/sympy/issues/detail?id=1412#c1 Original author: https://code.google.com/u/111211129517653688844/

### sympy-issue-migrator commented May 10, 2009

 ``````**Labels:** Integration `````` Original comment: http://code.google.com/p/sympy/issues/detail?id=1412#c2 Original author: https://code.google.com/u/111211129517653688844/

### oldk1331 commented May 20, 2016

 In sympy 1.0: ``````In [2]: a = integrate(cos(x)**2 / (1-sin(x))) In [3]: a Out[2]: 2⎛x⎞ x⋅tan ⎜─⎟ ⎝2⎠ x 2 ─────────── + ─────────── - ─────────── 2⎛x⎞ 2⎛x⎞ 2⎛x⎞ tan ⎜─⎟ + 1 tan ⎜─⎟ + 1 tan ⎜─⎟ + 1 ⎝2⎠ ⎝2⎠ ⎝2⎠ In [4]: simplify(a) Out[4]: x - cos(x) - 1 `````` The result can be simplified, I think this issue can be closed.

### skirpichev added a commit to skirpichev/diofant that referenced this issue Nov 9, 2018

``` Removed test_failing_integrals.py ```
```Few tests were moved to test_integrals.py

Some remarks:
1) Timeout stuff removed - we can use pytest-timeout plugin.
2) tests test_sympyissue_3880, test_sympyissue_4525,
test_sympyissue_4941 - are hangs.
3) test_sympyissue_4326 - solved issue, there is a test.
4) test_sympyissue_1638b - solved, there is a test with a correct value.
5) test_sympyissue_4895* - solved, a duplicate of sympy/sympy#3940.
There is a test.
6) test_sympyissue_4992 - solved, there is a test.
7) test_sympyissue_4064 - actually issue sympy/sympy#7163, which is
fixed, there is a test.

Closes sympy/sympy#4511```
``` 2cdf316 ```

### skirpichev added a commit to skirpichev/diofant that referenced this issue Nov 11, 2018

``` Removed test_failing_integrals.py ```
```Few tests were moved to test_integrals.py

Some remarks:
1) Timeout stuff removed - we can use pytest-timeout plugin.
2) test_sympyissue_3880, test_sympyissue_4525,
test_sympyissue_4941 - are hangs.
3) test_sympyissue_4326 - solved issue, there is a test.
4) test_sympyissue_1638b - solved, there is a test with a correct value.
5) test_sympyissue_4895* - solved, a duplicate of sympy/sympy#3940.
There is a test.
6) test_sympyissue_4992 - solved, there is a test.
7) test_sympyissue_4064 - actually issue sympy/sympy#7163, which is
fixed, there is a test.

Closes sympy/sympy#4511```
``` 3885368 ```

### skirpichev added a commit to skirpichev/diofant that referenced this issue Nov 12, 2018

``` Removed test_failing_integrals.py ```
```Few tests were moved to test_integrals.py

Some remarks:
1) Timeout stuff removed - we can use pytest-timeout plugin.
2) test_sympyissue_3880, test_sympyissue_4525,
test_sympyissue_4941 - are hangs.
3) test_sympyissue_4326 - solved issue, there is a test.
4) test_sympyissue_1638b - solved, there is a test with a correct value.
5) test_sympyissue_4895* - solved, a duplicate of sympy/sympy#3940.
There is a test.
6) test_sympyissue_4992 - solved, there is a test.
7) test_sympyissue_4064 - actually issue sympy/sympy#7163, which is
fixed, there is a test.

Closes sympy/sympy#4511```
``` c690331 ```
to join this conversation on GitHub. Already have an account? Sign in to comment