From 3992236473b815e471cc8ccce4970b4bc5ab0245 Mon Sep 17 00:00:00 2001 From: gorynin <118587520+gorynin@users.noreply.github.com> Date: Wed, 7 Dec 2022 13:00:30 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=B3=D0=BE=D1=80=D1=8B=D0=BD=D1=8B=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/src/main.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/python/src/main.py b/python/src/main.py index e37a77c..e702191 100644 --- a/python/src/main.py +++ b/python/src/main.py @@ -1,7 +1,14 @@ -def summ(a: int, b: int) -> int: - return a + b + +import math +x_start = 1.25 +x_end = 3.25 +x_step = 0.4 + +while x_start <= x_end: + y = abs(x_start ** 2 - 2.5) ** (1/4) + (math.log10(x_start*x_start)) ** (1/3) + x_start += x_step + print(y) + + -if __name__ == "__main__": - print("Hello world") - print(summ(3, 4)) From 93c193c214408576ae66642fc52a44244463984a Mon Sep 17 00:00:00 2001 From: gorynin <118587520+gorynin@users.noreply.github.com> Date: Wed, 7 Dec 2022 13:01:15 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=B3=D0=BE=D1=80=D1=8B=D0=BD=D1=8B=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...203\320\275\320\272\321\206\320\270\320\270.py" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "python/src/\321\204\321\203\320\275\320\272\321\206\320\270\320\270.py" diff --git "a/python/src/\321\204\321\203\320\275\320\272\321\206\320\270\320\270.py" "b/python/src/\321\204\321\203\320\275\320\272\321\206\320\270\320\270.py" new file mode 100644 index 0000000..e702191 --- /dev/null +++ "b/python/src/\321\204\321\203\320\275\320\272\321\206\320\270\320\270.py" @@ -0,0 +1,14 @@ + +import math +x_start = 1.25 +x_end = 3.25 +x_step = 0.4 + +while x_start <= x_end: + y = abs(x_start ** 2 - 2.5) ** (1/4) + (math.log10(x_start*x_start)) ** (1/3) + x_start += x_step + print(y) + + + +