-
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
Лаба 3 #128
Лаба 3 #128
Conversation
У вас конфликты на ветке - надо починить |
golang/internal/LAB4/LAB4.go
Outdated
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 |
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.
вынесите значение a в параметры функции
golang/internal/LAB4/LAB4.go
Outdated
var a float64 = -2.5 | ||
var b float64 = 3.4 |
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.
вынестите а и b в параметры функции
golang/internal/LAB4/LAB4.go
Outdated
y := []float64{} | ||
x := []float64{} |
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.
используйте make для выделения массива нужного размера
golang/internal/LAB4/LAB4.go
Outdated
if formulausl(x) >= 5 { | ||
return (math.Pow(math.Log10(math.Pow(a, 2)+x), 2) / math.Pow(a+x, 2)) | ||
} else { | ||
return (0) |
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.
а у вас тут разве не должна быть другая формула?
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.
вопрос все еще актуален
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.
вопрос все еще актуальнейший - вы хоть ответьте - а то возьму и удалю PR ...
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.
Здравствуйте, вроде формула правильная, в 5 варианте система, или её по другому нужно оформить?
У вас тут конфликты - надо порешать |
Почините конфликт, а то придется закрыть :) |
golang/internal/LAB4/LAB4.go
Outdated
y := []float64{} | ||
x := []float64{} |
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.
тут тоже надо make использовать
Но самое главное - конфликт |
golang/internal/LAB4/LAB4.go
Outdated
if formulausl(x) >= 5 { | ||
return (math.Pow(math.Log10(math.Pow(a, 2)+x), 2) / math.Pow(a+x, 2)) | ||
} else { | ||
return (0) |
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.
вопрос все еще актуальнейший - вы хоть ответьте - а то возьму и удалю PR ...
67266ff
into
ISUCT:Gvozdarev_Jaroslav_Vladimirovich
No description provided.