From c55d975dc6c9df67037f5485ed28552ca750f06c Mon Sep 17 00:00:00 2001 From: PokhilAA Date: Sun, 23 Nov 2025 10:59:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=BA=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA7/task.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/TEMA7/task.md b/TEMA7/task.md index 025a20e..b976cde 100644 --- a/TEMA7/task.md +++ b/TEMA7/task.md @@ -14,6 +14,7 @@ ## 1. +```py >>> def delay_signal (signal, T): ... """"Расчёт выхода y(t) для устройства задержки""" ... output=[] @@ -28,9 +29,10 @@ >>> y= delay_signal (x, 2) >>> y [0, 0, 1, 0.5, 3.6, 4.5, 1] +``` ## 2. - +```py >>> import random >>> import matplotlib.pyplot as plt >>> def histogram (sample, number): @@ -67,15 +69,15 @@ -11.561019750784087 - 0.4122951289244803 | 2 0.4122951289244803 - 12.385610008633048 | 5 [3, 2, 5] - +``` ![График](Figure_3.png) ## 3. - +```py >>> linear_regression = lambda b1, b2, x: b1+b2 * x >>> result = linear_regression (2,3,5) >>> result 17 - +```