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

Lab-3 #150

Open
wants to merge 1 commit into
base: Kuprijanov_Dmitrij_Vjacheslavovich
Choose a base branch
from

Conversation

Delysparthmen
Copy link

No description provided.

@jskonst
Copy link
Contributor

jskonst commented Nov 11, 2023

Укажите правильную ветку - не понятно кто вы :(

Comment on lines +20 to +24
x1 := 1.9
x2 := 2.15
x3 := 2.34
x4 := 2.73
x5 := 3.16
Copy link
Contributor

Choose a reason for hiding this comment

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

используйте массив (или срез уже)

@jskonst jskonst changed the base branch from main to Kuprijanov_Dmitrij_Vjacheslavovich November 11, 2023 07:25
x4 := 2.73
x5 := 3.16

y1 := ((a*math.Sqrt(x1) - b*(math.Log(x1)/math.Log(5))) / (math.Log10(math.Abs(x1 - 1))))
Copy link
Contributor

Choose a reason for hiding this comment

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

И в принципе можете переходить на использование функций


y1 := ((a*math.Sqrt(x1) - b*(math.Log(x1)/math.Log(5))) / (math.Log10(math.Abs(x1 - 1))))
fmt.Println(y1)
y2 := ((a*math.Sqrt(x2) - b*(math.Log(x2)/math.Log(5))) / (math.Log10(math.Abs(x2 - 1))))
Copy link
Contributor

Choose a reason for hiding this comment

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

вот это нужно вынести в отдельную функцию

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants