diff --git a/TEMA7/Figure_1.png b/TEMA7/Figure_1.png new file mode 100644 index 0000000..581f8c6 Binary files /dev/null and b/TEMA7/Figure_1.png differ diff --git a/TEMA7/report.md b/TEMA7/report.md index a7fb8bf..0cf4fb5 100644 --- a/TEMA7/report.md +++ b/TEMA7/report.md @@ -1 +1,133 @@ -dsfsdfsdfsdsd \ No newline at end of file +# Протокол по Теме 7 + +Марков Никита Сергеевич, А-03-23 + +## 1. Начало работы + +Запуск IDLE, установление рабочего каталога + +## 2. Создание пользовательской функции. + +### 2.1. Первый пример: функция – без аргументов. + +```py + +def uspeh(): + """Подтверждение успеха операции""" + print('Выполнено успешно!') + +uspeh() +Выполнено успешно! +type(uspeh) + +dir(uspeh) +['__annotate__', '__annotations__', '__builtins__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__getstate__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__type_params__'] +help(uspeh) +Help on function uspeh in module __main__: + +uspeh() + Подтверждение успеха операции + +``` + +### 2.2. Пример функции с аргументами. + +```py + +def sravnenie(a,b): + """Сравнение a и b""" + if a>b: + print(a,' больше ',b) + elif a +plt.plot(spsy, 'b-', linewidth=2) +[] +plt.title('Выходной сигнал инерционной системы') +Text(0.5, 1.0, 'Выходной сигнал инерционной системы') +plt.xlabel('Время') +Text(0.5, 0, 'Время') +plt.ylabel('Амплитуда') +Text(0, 0.5, 'Амплитуда') +plt.grid() +plt.show() + +``` + +**Результат:** + + + + + + + + + +