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

Lab3 Lab4 Lab5 #217

Open
wants to merge 7 commits into
base: Soldatov_Ivan_Sergeevich
Choose a base branch
from

Conversation

m0onblvck
Copy link

No description provided.

@m0onblvck m0onblvck changed the title Lab3 Lab3 Lab4 Dec 17, 2023
@m0onblvck m0onblvck changed the title Lab3 Lab4 Lab3 Lab4 Lab5 Dec 23, 2023
golang/main.go Outdated
Comment on lines 113 to 134
// func formula(a, x float64) float64 {
// return ((math.Pow((math.Log(a + x)), 2)) / (math.Pow((a + x), 2)))
// }

// func main () {
// fmt.Println("Солдатов Иван Сергеевич")
// fmt.Println("------------------------First_Exercise-------------------------------")
// a := 2.0
// x_end := 4.2
// x_step := 0.6
// x_start := 1.2
// for x := x_start; x <= x_end; x += x_step {
// fmt.Println(formula(a, x))
// }
// fmt.Println("------------------------Second_Exercise-------------------------------")
// array := []float64{1.16, 1.32, 1.47, 1.65, 1.93}
// for _, x := range array {
// fmt.Println(formula(a, x))
// }
// fmt.Println("------------------------Lab_4-------------------------------")
// lab4.Solve(a, x_start, x_end, x_step)
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

код что не нужен - удаляйте или раскомментироуйте - ну будет и этот код запускаться - пока не страшно

golang/main.go Outdated
"fmt"
)

type Mouse struct {
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
Author

Choose a reason for hiding this comment

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

Здравствуйте! Нужно в отдельный пакет структуру вынести, правильно?

Copy link
Author

@m0onblvck m0onblvck Dec 25, 2023

Choose a reason for hiding this comment

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

Или вообще всю лабораторную в другой пакет?

@jskonst
Copy link
Contributor

jskonst commented Dec 23, 2023

посмотрите и почините ошибки линтера

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