# Playing around


```python
from IPython.display import Math
from sympy import *
XS = range(0, 1000)
x = Symbol('x')
f = 2*x + 5
f_real = lambdify(x, f, 'numpy')
f
```




$\displaystyle 2 x + 5$




```python
from matplotlib.pyplot import plot, show
ys = [f_real(x) for x in XS]
%matplotlib inline
plot(XS, ys)
show()
```


```latex
%%latex
\begin{align}
\int_{-\infty}^{+\infty} 2x + 5 \ dx = x^2 + 5x + C
\end{align}
```


\begin{align}
\int 2x + 5 \ dx = x^2 + 5x + C
\end{align}




```python
from matplotlib.pyplot import plot, show
fint = integrate(f)
fint_real = lambdify(x, fint, 'numpy')
ys = [fint_real(x) for x in XS]
%matplotlib inline
plot(XS, ys)
show()
```

5b38e99ba1879fdb41046dd4a5778c3a82921cf1
ipynb
Jupyter Notebook
Python/jupyter/play.ipynb
Catamondium/scratch
c67dc76e11a66fc5cf0fe142f161791223ca6861
Unlicense
Python/jupyter/play.ipynb
Catamondium/scratch
c67dc76e11a66fc5cf0fe142f161791223ca6861
Unlicense
Python/jupyter/play.ipynb
Catamondium/scratch
c67dc76e11a66fc5cf0fe142f161791223ca6861
Unlicense
Qwen/Qwen-72B
1. YES
2. YES