From ac5253a66d58399fe69e3ad7f3fca5f2307f8f79 Mon Sep 17 00:00:00 2001 From: DragIvBor <115340250+DragIvBor@users.noreply.github.com> Date: Sat, 10 Dec 2022 14:01:54 +0300 Subject: [PATCH] Delete lab_2.py --- python/src/lab_2.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 python/src/lab_2.py diff --git a/python/src/lab_2.py b/python/src/lab_2.py deleted file mode 100644 index 468db07..0000000 --- a/python/src/lab_2.py +++ /dev/null @@ -1,25 +0,0 @@ -import math -a = 1.35 -b = 0.98 -x = 1.14 -print('Задание А:') -# Задание А - - -def y(x): - y = (((a * x + b) ** (1 / 3)) / ((math.log(x, math.e)) ** 2)) - return y - - -if __name__ == '__main__': - while x < 4.24: - print(y(x)) - x += 0.62 - - # Задание B - print('Задание B:') - xlist = [0.35, 1.28, 3.51, 5.21, 4.16] - xlen = len(xlist) - for i in range(0, xlen): - x = xlist[i] - print(y(x))