





'''simple docstring'''




from math import pow, sqrt







def _lowerCAmelCase     (      *_lowerCAmelCase    )->     bool:
 __UpperCAmelCase					=   len(_lowerCAmelCase    ) > 0 and all(value > 0.0 for value in values    )
 return result







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase    )->     float | ValueError:
 return (
     round(sqrt(molar_mass_a / molar_mass_a    )       ,    6    )
     if validate(_lowerCAmelCase       ,    _lowerCAmelCase    )
     else ValueError('Input Error: Molar mass values must greater than 0.'    )
 )







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )->     float | ValueError:
 return (
     round(effusion_rate * sqrt(molar_mass_a / molar_mass_a    )       ,    6    )
     if validate(_lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )
     else ValueError(
         'Input Error: Molar mass and effusion rate values must greater than 0.'    )
 )







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )->     float | ValueError:
 return (
     round(effusion_rate / sqrt(molar_mass_a / molar_mass_a    )       ,    6    )
     if validate(_lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )
     else ValueError(
         'Input Error: Molar mass and effusion rate values must greater than 0.'    )
 )







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )->     float | ValueError:
 return (
     round(molar_mass / pow(effusion_rate_a / effusion_rate_a       ,    2    )       ,    6    )
     if validate(_lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )
     else ValueError(
         'Input Error: Molar mass and effusion rate values must greater than 0.'    )
 )







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )->     float | ValueError:
 return (
     round(pow(effusion_rate_a / effusion_rate_a       ,    2    ) / molar_mass       ,    6    )
     if validate(_lowerCAmelCase       ,    _lowerCAmelCase       ,    _lowerCAmelCase    )
     else ValueError(
         'Input Error: Molar mass and effusion rate values must greater than 0.'    )
 )












'''simple docstring'''




from collections.abc import Sequence







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase    )->     float:
 return sum(c * (x**i) for i, c in enumerate(_lowerCAmelCase    )    )







def _lowerCAmelCase     (      _lowerCAmelCase       ,    _lowerCAmelCase    )->     float:
 __UpperCAmelCase					=   0.0
 for coeff in reversed(_lowerCAmelCase    ):
  __UpperCAmelCase					=   result * x + coeff
 return result


if __name__ == "__main__":
    _A:					str							=				(0.0, 0.0, 5.0, 9.3, 7.0)
    _A:					Dict							=				10.0
    print(evaluate_poly(poly, x))
    print(horner(poly, x))





