






__a      :       int				  =   {
    "meter": "m",
    "kilometer": "km",
    "megametre": "Mm",
    "gigametre": "Gm",
    "terametre": "Tm",
    "petametre": "Pm",
    "exametre": "Em",
    "zettametre": "Zm",
    "yottametre": "Ym",
}
# Exponent of the factor(meter)
__a      :       Optional[Any]				  =   {
    "m": 0,
    "km": 3,
    "Mm": 6,
    "Gm": 9,
    "Tm": 12,
    "Pm": 15,
    "Em": 18,
    "Zm": 21,
    "Ym": 24,
}



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			float			,				__lowercase   :			str			,				__lowercase   :			str    )						->      float:





    """simple docstring"""

    __A         =	from_type.lower().strip("""s"""    )
    __A         =	to_type.lower().strip("""s"""    )

    __A         =	UNIT_SYMBOL.get(__lowercase			,				__lowercase    )
    __A         =	UNIT_SYMBOL.get(__lowercase			,				__lowercase    )

    if from_sanitized not in METRIC_CONVERSION:
        __A         =	(
            f"Invalid 'from_type' value: {from_type!r}.\n"
            f"Conversion abbreviations are: {', '.join(__lowercase    )}"
        )
        raise ValueError(__lowercase    )
    if to_sanitized not in METRIC_CONVERSION:
        __A         =	(
            f"Invalid 'to_type' value: {to_type!r}.\n"
            f"Conversion abbreviations are: {', '.join(__lowercase    )}"
        )
        raise ValueError(__lowercase    )
    __A         =	METRIC_CONVERSION[from_sanitized]
    __A         =	METRIC_CONVERSION[to_sanitized]
    __A         =	1

    if from_exponent > to_exponent:
        __A         =	from_exponent - to_exponent
    else:
        __A         =	-(to_exponent - from_exponent)

    return value * pow(1_0			,				__lowercase    )


if __name__ == "__main__":
  from doctest import testmod

  testmod()












from collections.abc import Sequence



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			Sequence[float]			,				__lowercase   :			float    )						->      float:





    """simple docstring"""

    return sum(c * (x**i) for i, c in enumerate(__lowercase    )    )



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			Sequence[float]			,				__lowercase   :			float    )						->      float:





    """simple docstring"""

    __A         =	0.0
    for coeff in reversed(__lowercase    ):
        __A         =	result * x + coeff
    return result


if __name__ == "__main__":
  __a      :       Dict				  =   (0.0, 0.0, 5.0, 9.3, 7.0)
  __a      :       Optional[Any]				  =   1_0.0
  print(evaluate_poly(poly, x))
  print(horner(poly, x))




