Example #1
0
def inch_to_meter(inches):
    return Formulas.round_floating_point(Decimal(inches * 0.0254))
Example #2
0
def rpm_to_angular(rpm):
    angular = (Decimal(2) * pi * rpm) / 60

    return Formulas.round_floating_point(angular)
Example #3
0
def g_cm3_to_kg_m3(g_cm3):
    kg_m3 = Decimal(1000) * g_cm3

    return Formulas.round_floating_point(kg_m3)
Example #4
0
def rpm_to_linear(total_radius, rpm):
    linear = Decimal(rpm * 2 * total_radius * pi) / Decimal(60)

    return Formulas.round_floating_point(linear)
Example #5
0
def linear_to_rpm(total_radius, linear_speed):
    rpm = Decimal(linear_speed * 60) / Decimal(2 * total_radius * pi)

    return Formulas.round_floating_point(rpm)
Example #6
0
def meter_to_feet(meter):
    return Formulas.round_floating_point(Decimal(meter / Decimal(0.0254 * 12)))
Example #7
0
def feet_to_inch(feet):
    return Formulas.round_floating_point(Decimal(feet / 12))
Example #8
0
def inch_to_feet(inches):
    return Formulas.round_floating_point(Decimal(inches * 12))