-
Notifications
You must be signed in to change notification settings - Fork 92
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
base: Kuprijanov_Dmitrij_Vjacheslavovich
Are you sure you want to change the base?
Lab-3 #150
Conversation
Укажите правильную ветку - не понятно кто вы :( |
x1 := 1.9 | ||
x2 := 2.15 | ||
x3 := 2.34 | ||
x4 := 2.73 | ||
x5 := 3.16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
используйте массив (или срез уже)
x4 := 2.73 | ||
x5 := 3.16 | ||
|
||
y1 := ((a*math.Sqrt(x1) - b*(math.Log(x1)/math.Log(5))) / (math.Log10(math.Abs(x1 - 1)))) |
There was a problem hiding this comment.
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)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вот это нужно вынести в отдельную функцию
No description provided.