Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Pipfile #210

Open
wants to merge 2 commits into
base: Senina_Elizaveta_Alekseevna
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.9"
31 changes: 31 additions & 0 deletions python/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
import math


def summ(a: int, b: int) -> int:
return a + b


if __name__ == "__main__":
print("Hello world")
print(summ(3, 4))


def laba_v_17_1(a: float, b: float, x_start: float, x_end: float, step: float):
y = None
while x_start <= x_end:
try:
y = (a + (math.tan(b * x_start) ** 2)) / (b + ((math.sin(a * x_start)) / (math.cos(a * x_start))) ** 2)
except Exception as Error:
print(Error, x_start)
x_start += step
print(y)


def laba_v_17_2(app: list, a: float, b: float):
for x in app:
y = (a + (math.tan(b * x) ** 2)) / (b + ((math.sin(a * x)) / (math.cos(a * x))) ** 2)
print(y)


if "__main__" != __name__:
pass
else:
print('1')
laba_v_17_1(0.1, 0.5, 0.15, 1.37, 0.25)

print('2')

laba_v_17_2([0.2, 0.3, 0.44, 0.6, 0.56], 0.1, 0.5)