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

Лаба 3 #128

Conversation

l3fo
Copy link

@l3fo l3fo commented Nov 2, 2023

No description provided.

@jskonst
Copy link
Contributor

jskonst commented Dec 1, 2023

У вас конфликты на ветке - надо починить

return math.Pow(a+b*x, 3.5)/1.8 + math.Pow(math.Cos(a*x), 3)
}
func formulamain(x float64) float64 {
var a float64 = -2.5
Copy link
Contributor

Choose a reason for hiding this comment

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

вынесите значение a в параметры функции

Comment on lines 8 to 9
var a float64 = -2.5
var b float64 = 3.4
Copy link
Contributor

Choose a reason for hiding this comment

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

вынестите а и b в параметры функции

Comment on lines 21 to 22
y := []float64{}
x := []float64{}
Copy link
Contributor

Choose a reason for hiding this comment

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

используйте make для выделения массива нужного размера

if formulausl(x) >= 5 {
return (math.Pow(math.Log10(math.Pow(a, 2)+x), 2) / math.Pow(a+x, 2))
} else {
return (0)
Copy link
Contributor

Choose a reason for hiding this comment

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

а у вас тут разве не должна быть другая формула?

Copy link
Contributor

Choose a reason for hiding this comment

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

вопрос все еще актуален

Copy link
Contributor

Choose a reason for hiding this comment

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

вопрос все еще актуальнейший - вы хоть ответьте - а то возьму и удалю PR ...

Copy link
Author

Choose a reason for hiding this comment

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

Здравствуйте, вроде формула правильная, в 5 варианте система, или её по другому нужно оформить?

@jskonst
Copy link
Contributor

jskonst commented Dec 1, 2023

У вас тут конфликты - надо порешать

@jskonst
Copy link
Contributor

jskonst commented Dec 2, 2023

Почините конфликт, а то придется закрыть :)

Comment on lines 27 to 28
y := []float64{}
x := []float64{}
Copy link
Contributor

Choose a reason for hiding this comment

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

тут тоже надо make использовать

@jskonst
Copy link
Contributor

jskonst commented Dec 2, 2023

Но самое главное - конфликт

if formulausl(x) >= 5 {
return (math.Pow(math.Log10(math.Pow(a, 2)+x), 2) / math.Pow(a+x, 2))
} else {
return (0)
Copy link
Contributor

Choose a reason for hiding this comment

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

вопрос все еще актуальнейший - вы хоть ответьте - а то возьму и удалю PR ...

@jskonst jskonst merged commit 67266ff into ISUCT:Gvozdarev_Jaroslav_Vladimirovich Dec 9, 2023
2 checks passed
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