Skip to content

First commit#1

Open
OlegKnu wants to merge 2 commits intomainfrom
first-iteration
Open

First commit#1
OlegKnu wants to merge 2 commits intomainfrom
first-iteration

Conversation

@OlegKnu
Copy link
Copy Markdown
Owner

@OlegKnu OlegKnu commented Jan 29, 2025

No description provided.

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

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

Привет Олег

хорошая работа - все верно реализовано

тесты зеленые - зачет

Comment thread ftracker.go
// ((0.035 * ВесСпортсменаВКг + (СредняяСкоростьВМетрахВСекунду**2 / РостВМетрах)
// * 0.029 * ВесСпортсменаВКг) * ВремяТренировкиВЧасах * minInH)
speedMInSec := meanSpeed(action, duration) * kmhInMsec
squareSpeedMInSec := math.Pow(speedMInSec, float64(2))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

float64(2) лишнее приведение типов

Comment thread ftracker.go
// * 0.029 * ВесСпортсменаВКг) * ВремяТренировкиВЧасах * minInH)
speedMInSec := meanSpeed(action, duration) * kmhInMsec
squareSpeedMInSec := math.Pow(speedMInSec, float64(2))
return ((walkingCaloriesWeightMultiplier*weight + (squareSpeedMInSec/(height/cmInM))*walkingSpeedHeightMultiplier*weight) * duration * minInH)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

тут возможно деление на 0 - стоило избежать

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