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

Лабораторная Работа + Имя и Hello World. #157

Open
wants to merge 1 commit into
base: Lytkova_Kristina_Ruslanovna
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Вот сюда нужно будет в первой работе с гитом добавит свое ФИО

## ФИО

Лыткова Кристина Руслановна
## Работа с репозиторием

В репозитории присутствуют 2 каталога - для рабработчиков на python и golang.
Expand Down
1 change: 1 addition & 0 deletions python/src/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('Hello World')
24 changes: 24 additions & 0 deletions python/src/var12.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import math

a = 1.6
x = 1.2
print('Задание А:')


def y(x):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

параметр a также передайте в функцию

y = (a ** ((x ** 2) - 1)) \
- (math.log10((x ** 2) - 1)) \
+ (((x ** 2) - 1) ** 1 / 3)
return y


while x < 3.7:
print(y(x))
x += 0.5

print('Задание B:')
xlist = [1.28, 1.36, 2.47, 3.68, 4.56]
xlen = len(xlist)
for i in range(0, xlen):
print(y(x))
x = xlist[i]