Update kinetic_energy.py (#7848)

Fixed a typo error in docstrings
This commit is contained in:
SparshRastogi 2022-10-30 02:54:59 +05:30 committed by GitHub
parent 1550731cb7
commit 3ec0aa85c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,16 +2,16 @@
Find the kinetic energy of an object, given its mass and velocity. Find the kinetic energy of an object, given its mass and velocity.
Description : In physics, the kinetic energy of an object is the energy that it Description : In physics, the kinetic energy of an object is the energy that it
possesses due to its motion. It is defined as the work needed to accelerate a body of a possesses due to its motion.It is defined as the work needed to accelerate a body of a
given mass from rest to its stated velocity. Having gained this energy during its given mass from rest to its stated velocity.Having gained this energy during its
acceleration, the body maintains this kinetic energy unless its speed changes. The same acceleration, the body maintains this kinetic energy unless its speed changes.The same
amount of work is done by the body when decelerating from its current speed to a state amount of work is done by the body when decelerating from its current speed to a state
of rest. Formally, a kinetic energy is any term in a system's Lagrangian which includes of rest.Formally, a kinetic energy is any term in a system's Lagrangian which includes
a derivative with respect to time. a derivative with respect to time.
In classical mechanics, the kinetic energy of a non-rotating object of mass m traveling In classical mechanics, the kinetic energy of a non-rotating object of mass m traveling
at a speed v is ½mv². In relativistic mechanics, this is a good approximation only when at a speed v is ½mv².In relativistic mechanics, this is a good approximation only when
v is much less than the speed of light. The standard unit of kinetic energy is the v is much less than the speed of light.The standard unit of kinetic energy is the
joule, while the English unit of kinetic energy is the foot-pound. joule, while the English unit of kinetic energy is the foot-pound.
Reference : https://en.m.wikipedia.org/wiki/Kinetic_energy Reference : https://en.m.wikipedia.org/wiki/Kinetic_energy
@ -20,7 +20,7 @@ Reference : https://en.m.wikipedia.org/wiki/Kinetic_energy
def kinetic_energy(mass: float, velocity: float) -> float: def kinetic_energy(mass: float, velocity: float) -> float:
""" """
Calculate kinetick energy. Calculate kinetic energy.
The kinetic energy of a non-rotating object of mass m traveling at a speed v is ½mv² The kinetic energy of a non-rotating object of mass m traveling at a speed v is ½mv²