Skip to content

Commit

Permalink
Fixing missing description of two functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabri432 committed Sep 1, 2022
1 parent 660bf2e commit b750d28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
1/09/2022

v0.10.2
PATCH - Fixing missing descriptions for MechanicalEner and Momentum functions.

v0.10.1
PATCH - Fixing wrong description for Power function.

Expand Down
4 changes: 2 additions & 2 deletions classical.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func KineticEner(mass, speed float64) float64 {
return (1 / 2) * mass * (speed * speed)
}

//Mechanic Energy formula
//Mechanic Energy is the sum of Potential energy and kinetic energy, check for more information https://en.wikipedia.org/wiki/Mechanical_energy
func MechanicalEner(potential, kinetic float64) float64 {
return potential + kinetic
}

//Momentum is the product between
//Momentum is the product between mass and speed
func Momentum(mass, speed float64) float64 {
return mass * speed
}
Expand Down

0 comments on commit b750d28

Please sign in to comment.