# Sympy


```python
from sympy import *

# init_printing()
x, y, z = symbols("x y z")

```


```python
simplify(sin(x) ** 2 + cos(x) ** 2)
```




$\displaystyle 1$




```python
expand((x + 1) ** 3)
```




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




```python
a = 3
b = 8
c = 2
y = a * x ** 2 + b * x + c

plot(y)
```


```python
solveset(y)
```




$\displaystyle \left\{- \frac{4}{3} - \frac{\sqrt{10}}{3}, - \frac{4}{3} + \frac{\sqrt{10}}{3}\right\}$




```python
dy = y.diff(x)

plot(dy)
```


```python
iy = integrate(y, x)

plot(iy)
```

b1fe1ede2a968d43399a6f4d8a8466b3b7a28ba7
ipynb
Jupyter Notebook
docs/Library/ThirdParty/sympy.ipynb
yoannmos/PythonGuide
b7885f7da4193801e53edc441ecc4de9ee8ea6f7
MIT
2021-09-22T02:29:09.000Z
2021-09-27T09:44:51.000Z
docs/Library/ThirdParty/sympy.ipynb
yoannmos/PythonGuide
b7885f7da4193801e53edc441ecc4de9ee8ea6f7
MIT
docs/Library/ThirdParty/sympy.ipynb
yoannmos/PythonGuide
b7885f7da4193801e53edc441ecc4de9ee8ea6f7
MIT
Qwen/Qwen-72B
1. YES
2. YES