# scipy/scipy

Merged
merged 4 commits into from Feb 19, 2018

## Conversation

Contributor

### samyak0210 commented Feb 17, 2018

 fix #7168
``` DOC:Add examples to integrate.quadpack docstrings ```
`fix #7168`
``` f8df548 ```

requested changes
 -------- Calculate :math: double integration exp(-x*y)/y**5 Limits from 0 to inf

#### ev-br Feb 17, 2018

Member

This integral over `y` does not converge.
Maybe better write an exact formula in TeX notation.

#### samyak0210 Feb 17, 2018

Author Contributor

#### ev-br Feb 17, 2018

Member

I actually suggest some simpler integral, which can be checked manually. E.g. (not necessarily this specific example):

Compute the moment of inertia of a square square plate with the axis of rotation at the center of the plate (the answer should be `\$I = m (h^2 + w^2) / 12\$`):

``````In [3]: I, err = dblquad(lambda x, y: x**2 + y**2, -1, 1, lambda x: -1, lambda x : 1)

In [4]: m, err = dblquad(lambda x, y: 1, -1, 1, lambda x: -1, lambda x: 1)

In [5]: I/m / (2**2 + 2**2)
Out[5]: 0.08333333333333333

``````

#### samyak0210 Feb 19, 2018

Author Contributor

Done

 Limits from 0 to inf >>> from scipy import integrate >>> from numpy as np

#### ev-br Feb 17, 2018

Member

This line is implicit in all docstring examples.

#### samyak0210 Feb 17, 2018

Author Contributor

I will remove these lines

#### ev-br Feb 17, 2018

Member

`integrate` import should be kept, only `import numpy as np` is implicit.

#### samyak0210 Feb 19, 2018

Author Contributor

Done

### ev-br added scipy.integrate Documentation labels Feb 17, 2018

added 2 commits Feb 18, 2018
``` changes requested are done ```
``` 62dd846 ```
``` error handled ```
``` 2632bc4 ```
Contributor Author

### samyak0210 commented Feb 19, 2018

 @ev-br all changes you requested are done can you just review them
reviewed
 Examples -------- Calculate :math: double integration x*y**2

#### ev-br Feb 19, 2018

Member

Stray :math: directive, please remove it.

reviewed
 Examples -------- Calculate :math: double integration x*y**2

#### ev-br Feb 19, 2018

Member

Please wrap the expression into double backticks so that it renders as code.

#### samyak0210 Feb 19, 2018

Author Contributor

so instead of this line I am replacing it with "Returns double integration of `x*y**2` "(without double quotes) . Is this correct @ev-br

``` changes done ```
``` 5a2fb9d ```
Contributor Author

### samyak0210 commented Feb 19, 2018

 @ev-br all changes were done. Can you review it?

### ev-br merged commit `1fc6f17` into scipy:master Feb 19, 2018 4 checks passed

#### 4 checks passed

ci/circleci Your tests passed on CircleCI!
Details
codecov/project 75.78% (target 1%)
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Member

### ev-br commented Feb 19, 2018

 Thanks @samyak0210.

Member

### WarrenWeckesser commented Feb 24, 2018

 @samyak0210 Thanks for working on the documentation! One suggestion, for you and for reviewers: please be sure the example code follows PEP 8. In the example added in this pull request, there should be a space after each comma.
added a commit to adbugger/scipy that referenced this pull request Mar 11, 2018
``` DOC:Add examples to integrate.quadpack docstrings (scipy#8440) ```
```* DOC:Add examples to integrate.quadpack docstrings
fix scipy#7168

* changes requested are done

* error handled

* changes done```
``` 6d7c29d ```