Sha256: cbdbaa1d1454176e48b6c742d583d40f511909abe108b9007aaeba59ecb09eb1
Contents?: true
Size: 430 Bytes
Versions: 3
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Runby # An assortment of mathematical functions related to running. class RunMath def self.predict_race_time(race1_distance, race1_time, target_distance) race1_distance = Distance.new(race1_distance) race1_time = RunbyTime.new(race1_time) target_distance = Distance.new(target_distance) race1_time * (target_distance / race1_distance)**1.06 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
runby_pace-0.6.146 | lib/runby_pace/run_math.rb |
runby_pace-0.6.145 | lib/runby_pace/run_math.rb |
runby_pace-0.6.144 | lib/runby_pace/run_math.rb |