PokhilAA 3 недель назад
Родитель 2624815dfd
Сommit c55d975dc6

@ -14,6 +14,7 @@
## 1. ## 1.
```py
>>> def delay_signal (signal, T): >>> def delay_signal (signal, T):
... """"Расчёт выхода y(t) для устройства задержки""" ... """"Расчёт выхода y(t) для устройства задержки"""
... output=[] ... output=[]
@ -28,9 +29,10 @@
>>> y= delay_signal (x, 2) >>> y= delay_signal (x, 2)
>>> y >>> y
[0, 0, 1, 0.5, 3.6, 4.5, 1] [0, 0, 1, 0.5, 3.6, 4.5, 1]
```
## 2. ## 2.
```py
>>> import random >>> import random
>>> import matplotlib.pyplot as plt >>> import matplotlib.pyplot as plt
>>> def histogram (sample, number): >>> def histogram (sample, number):
@ -67,15 +69,15 @@
-11.561019750784087 - 0.4122951289244803 | 2 -11.561019750784087 - 0.4122951289244803 | 2
0.4122951289244803 - 12.385610008633048 | 5 0.4122951289244803 - 12.385610008633048 | 5
[3, 2, 5] [3, 2, 5]
```
![График](Figure_3.png) ![График](Figure_3.png)
## 3. ## 3.
```py
>>> linear_regression = lambda b1, b2, x: b1+b2 * x >>> linear_regression = lambda b1, b2, x: b1+b2 * x
>>> result = linear_regression (2,3,5) >>> result = linear_regression (2,3,5)
>>> result >>> result
17 17
```

Загрузка…
Отмена
Сохранить