# 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)
```


```

```

27640c3a0703300ec4a2c74cefcbf6f74d4fc5b9
ipynb
Jupyter Notebook
notebooks/shared/nbconvert/tests/files/notebook1.ipynb
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
MIT
2018-09-21T03:51:04.000Z
2022-03-28T09:35:04.000Z
notebooks/shared/nbconvert/tests/files/notebook1.ipynb
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
MIT
2018-09-02T12:26:32.000Z
2022-02-09T07:19:08.000Z
notebooks/shared/nbconvert/tests/files/notebook1.ipynb
leonbett/debuggingbook
ae1fa940c306160429232fbc93a7a7f14b44efb7
MIT
2018-09-02T08:00:50.000Z
2022-03-27T22:04:50.000Z
Qwen/Qwen-72B
1. YES
2. YES