```python
import numpy as np
p = np.poly1d([1,0,0,0,0,0])
print (p)
print (p.integ())
p.integ()(1.0) - p.integ()(-1.0)
```

       5
    1 x
            6
    0.1667 x





    0.0




```python
from sympy import integrate, symbols
x, y = symbols('x y', real=True)
integrate(x**5, x)
```




    x**6/6




```python
integrate(x**5, (x, -1, 1))
```




    0




```python
from sympy import N, exp as Exp, sin as Sin
integrate(Exp(-x) * Sin(x), x)
```




    -exp(-x)*sin(x)/2 - exp(-x)*cos(x)/2




```python
integrate(Exp(-x) * Sin(x), (x, 0, 1))
```




    -exp(-1)*sin(1)/2 - exp(-1)*cos(1)/2 + 1/2




```python
N(_)
```




    0.245837007000237




```python
integrate(Sin(x) / x, x)
```




    Si(x)




```python
integrate(Sin(x) / x, (x, 0, 1))
```




    Si(1)




```python
N(_)
```




    0.946083070367183




```python
integrate(x**1, (x, 0, 1))
```




    1/2




```python
from sympy import oo
integrate(Exp(-x**2), (x,0,+oo))
```




    sqrt(pi)/2




```python

```

530a2c1dc42fcbbab6385379deaba88eaf12c531
ipynb
Jupyter Notebook
Chapter08/Integration.ipynb
PacktPublishing/SciPy-Recipes
fdea8e3bd6b161402ed824624819aa788e544eed
MIT
2017-12-28T05:01:19.000Z
2021-11-08T13:10:39.000Z
Chapter08/Integration.ipynb
PacktPublishing/SciPy-Recipes
fdea8e3bd6b161402ed824624819aa788e544eed
MIT
Chapter08/Integration.ipynb
PacktPublishing/SciPy-Recipes
fdea8e3bd6b161402ed824624819aa788e544eed
MIT
2017-12-24T09:25:55.000Z
2020-02-17T22:57:17.000Z
Qwen/Qwen-72B
1. YES
2. YES