Sha256: 7a92f3927677faf8482d098e91a5d20a9831ab535e16b037e54088f95e952c16

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

require 'driving_physics'

# Work is Force * Distance   (Torque * Theta)
# W = F * s  (W = T * Th)
# W = T * Theta

# Power is Work / time
# P = W / dt
# P = T * Th / dt
# P = T * Omega

module DrivingPhysics
  def self.work(force, displacement)
    force * displacement
  end

  def self.power(force, speed)
    force * speed
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
driving_physics-0.0.3.1 lib/driving_physics/power.rb
driving_physics-0.0.2.1 lib/driving_physics/power.rb
driving_physics-0.0.1.2 lib/driving_physics/power.rb
driving_physics-0.0.1.1 lib/driving_physics/power.rb