Constants and Unit Conversions#

Unit Conversions#

efficalc.unit_conversions.deg_to_rad = <latexexpr_efficalc.Variable object>#

Variable instance to show conversions from degrees to radians. (Divide by this variable to reverse the conversion)

>>> v = Input("v", 180, "deg")
>>> Calculation('result',v * deg_to_rad, "rad")
Calculation report will show --> result = v * pi / 180 rad/deg = 180deg * 3.142/180 rad/deg = 3.142 rad
efficalc.unit_conversions.ft_to_in = <latexexpr_efficalc.Variable object>#

Variable instance to show conversions from ft to in. (Divide by this variable to reverse the conversion)

>>> v = Input("v", 2, "ft")
>>> Calculation('result',v * ft_to_in, "in")
Calculation report will show --> result = v * 12 in/ft = 2 ft * 12 in/ft = 24 in
efficalc.unit_conversions.k_to_lb = <latexexpr_efficalc.Variable object>#

Variable instance to show conversions from kips to lbs. (Divide by this variable to reverse the conversion)

>>> v = Input("v", 2, "kip")
>>> Calculation('result',v * k_to_lb, "lbs")
Calculation report will show --> result = v * 1000 lbs/kip = 2 kip * 1000 lbs/kip = 2000 lbs

Constants#

efficalc.constants.E = <latexexpr_efficalc.Variable object>#

Variable instance representing e. (unit-less)

efficalc.constants.ONE = <latexexpr_efficalc.Variable object>#

Variable instance representing 1. (unit-less)

efficalc.constants.PI = <latexexpr_efficalc.Variable object>#

Variable instance representing pi. (unit-less)

efficalc.constants.TWO = <latexexpr_efficalc.Variable object>#

Variable instance representing 2. (unit-less)

efficalc.constants.ZERO = <latexexpr_efficalc.Variable object>#

Variable instance representing 0. (unit-less)