getFinalTime function

double getFinalTime(
  1. double velocity,
  2. double drag, {
  3. double effectivelyMotionless = 10,
})

Implementation

double getFinalTime(double velocity, double drag,
    {double effectivelyMotionless = 10}) {
  return math.log(effectivelyMotionless / velocity) / math.log(drag / 100);
}