# A simple SymPy example

First we import SymPy and initialize printing:


```
from sympy import init_printing
from sympy import *
 init_printing()
```

Create a few symbols:


```
x,y,z = symbols('x y z')
```

Here is a basic expression:


```
e = x**2 + 2.0*y + sin(z); e
```


```
diff(e, x)
```


```
integrate(e, z)
```


```

```

0ee2ca07e6b234a5d6b4024e922584bacaf48d47
ipynb
Jupyter Notebook
IPython/nbconvert/tests/files/notebook1.ipynb
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
BSD-3-Clause-Clear
2015-09-26T22:16:59.000Z
2022-03-14T19:58:46.000Z
IPython/nbconvert/tests/files/notebook1.ipynb
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
BSD-3-Clause-Clear
2015-09-23T19:52:38.000Z
2021-08-04T23:30:37.000Z
IPython/nbconvert/tests/files/notebook1.ipynb
chebee7i/ipython
85b169fa3afc3d374973295c7f1409ededddbaca
BSD-3-Clause-Clear
2015-12-11T22:04:01.000Z
2021-12-08T07:09:31.000Z
Qwen/Qwen-72B
1. YES
2. YES