# Simple symbolic maniplation in Python

All is done using [SymPy](https://docs.sympy.org/latest/index.html)


```python
from sympy import *
```

Define some common symbols to be used as variables, integers, or functions for symbolic purposes


```python
x, y, z, t = symbols('x y z t')
k, m, n = symbols('k m n', integer=True)
f, g, h = symbols('f g h', cls=Function)
```

Integration


```python
integrate(cos(x), x)
```




$\displaystyle \sin{\left(x \right)}$



Differentiation


```python
diff(atan(x),x)
```




$\displaystyle \frac{1}{x^{2} + 1}$




```python

```

24f634526c99cd3a3862cc16b923c802e3284280
ipynb
Jupyter Notebook
SymbolicExamples.ipynb
fedxa/PHYS30471
f5c16c50f813945d061dd4929ef6fb356a00ffc2
MIT
SymbolicExamples.ipynb
fedxa/PHYS30471
f5c16c50f813945d061dd4929ef6fb356a00ffc2
MIT
SymbolicExamples.ipynb
fedxa/PHYS30471
f5c16c50f813945d061dd4929ef6fb356a00ffc2
MIT
2020-11-19T14:53:35.000Z
2020-11-19T14:53:35.000Z
Qwen/Qwen-72B
1. YES
2. YES