Method: Joules.maximum_friction_force

Defined in:
lib/joules/forces.rb

.maximum_friction_force(coefficient_of_friction, normal_force) ⇒ Float

Calculates the maximum friction force given coefficient of friction and normal force.

Examples:

Joules.maximum_friction_force(0.4, 29.43) #=> 11.772

Parameters:

  • coefficient_of_friction (Int, Float)

    coefficient_of_friction >= 0

  • normal_force (Int, Force)

    normal_force is in newtons

Returns:

  • (Float)

    return value is in newtons



76
77
78
# File 'lib/joules/forces.rb', line 76

def maximum_friction_force(coefficient_of_friction, normal_force)
  return coefficient_of_friction * normal_force.to_f
end