```python
import sympy
```


```python
sympy.pi.evalf(100)
```


```python
s3=sympy.sqrt(3)
s3
```


```python
s3.evalf(100)
```


```python
s3*s3
```


```python
3**0.5 * 3**0.5
```


```python
sympy.pi
```


```python
x, y = sympy.symbols('x y')
expr = x + 2*y
expr
```


```python
expr-x  # sympy simplifies expressions
```


```python
x*expr
```


```python
sympy.expand(x*expr)
```


```python
# Differentiation
sympy.diff(sympy.sin(x)*sympy.exp(x), x)
```


```python
t=sympy.symbols('t')
y = sympy.Function('y')
sympy.dsolve(sympy.Eq(y(t).diff(t) , -y(t)), y(t) )
```


```python
a,b,c,d = sympy.symbols('a b c d')
sympy.Matrix([[a, b], [c, d]]).eigenvals()
```


```python
sympy.Matrix([[a, b], [c, d]]).inv()
```


```python
sympy.Matrix([[a, b], [c, d]]).det()
```


```python
a,b,c,d,e,f,g,h,i = sympy.symbols('a b c d e f g h i')
```


```python
sympy.Matrix([[a, b, c], [d, e, f], [g, h,i ]]).det()
```


```python
sympy.Matrix([[a, b, c], [d, e, f], [g, h,i ]]).inv()
```


```python
sympy.Matrix([[a, b, c], [d, e, f], [g, h,i ]]).eigenvals()
```


```python
sympy.Matrix([[a, b, c], [d, e, f], [g, h,i ]]).eigenvects()
```


```python

```

5ac1b1d97b267885a1e795557b52bef310fbcb11
ipynb
Jupyter Notebook
Lec011_sympy-example.ipynb
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
MIT
2021-09-09T19:50:06.000Z
2021-09-16T19:09:02.000Z
Lec011_sympy-example.ipynb
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
MIT
Lec011_sympy-example.ipynb
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
MIT
2021-12-02T02:15:45.000Z
2021-12-02T20:30:39.000Z
Qwen/Qwen-72B
1. YES
2. YES