# 4. Egyenletek


```python
import sympy as sp
import scipy.optimize
sp.init_printing()
```


```python
x, y, z = sp.symbols("x y z")
```


```python
egy1=77*x+6 - 160
```


```python
sp.solve(egy1,x)
```


```python
sp.solve(x**2 - 5, x)
```


```python
x
```


```python
e1 = 3*z + 2*y + 1*x - 7
e2 = 4*z + 0*y + 2*x - 8
e3 = 1*z + 4*y + 3*x - 9
```


```python
sp.solve([e1,e2,e3],[x,y,z])
```


```python
def f(x):
    return x**2 - 4
```


```python
gyok = scipy.optimize.brentq(f,0,10)
print(gyok)
```

    2.0


8c472bbf62c3f7d2ec6f882c12b543428efae075
ipynb
Jupyter Notebook
01/01_04_egyenletek.ipynb
TamasPoloskei/BME-VEMA
542725bf78e9ad0962018c1cf9ff40c860f8e1f0
MIT
01/01_04_egyenletek.ipynb
TamasPoloskei/BME-VEMA
542725bf78e9ad0962018c1cf9ff40c860f8e1f0
MIT
2018-11-20T14:17:52.000Z
2018-11-20T14:17:52.000Z
01/01_04_egyenletek.ipynb
TamasPoloskei/BME-VEMA
542725bf78e9ad0962018c1cf9ff40c860f8e1f0
MIT
Qwen/Qwen-72B
1. YES
2. YES