# Solving equations and inequalities


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


```
var('x y z a')
```


```
solve(x**2 - a, x)
```


```
x = Symbol('x')
solve_univariate_inequality(x**2 > 4, x)
```


```
solve([x + 2*y + 1, x - 3*y - 2], x, y)
```


```
solve([x**2 + y**2 - 1, x**2 - y**2 - S(1) / 2], x, y)
```


```
solve([x + 2*y + 1, -x - 2*y - 1], x, y)
```


```
var('a b c d u v')
```


```
M = Matrix([[a, b, u], [c, d, v]])
M
```


```
solve_linear_system(M, x, y)
```


```
det(M[:2, :2])
```

9d735ac1d8fed12a85163820701f6552c377b2fe
ipynb
Jupyter Notebook
Chapter15/02_solvers.ipynb
PacktPublishing/IPython-Interactive-Computing-and-Visualization-Cookbook-Second-Edition
7c41466113641abf7070f7bd14cc687c19c9c1ea
MIT
2018-03-06T19:38:30.000Z
2022-02-25T06:54:38.000Z
Chapter15/02_solvers.ipynb
PacktPublishing/IPython-Interactive-Computing-and-Visualization-Cookbook-Second-Edition
7c41466113641abf7070f7bd14cc687c19c9c1ea
MIT
Chapter15/02_solvers.ipynb
PacktPublishing/IPython-Interactive-Computing-and-Visualization-Cookbook-Second-Edition
7c41466113641abf7070f7bd14cc687c19c9c1ea
MIT
2018-02-19T16:11:16.000Z
2022-02-25T06:54:40.000Z
Qwen/Qwen-72B
1. YES
2. YES