

from collections.abc import Sequence
def 						_snake_case(   SCREAMING_SNAKE_CASE__      :     Sequence[float]   ,      SCREAMING_SNAKE_CASE__      :     float				)							->				float:





    '''simple docstring'''






    return sum(c * (x**i) for i, c in enumerate(SCREAMING_SNAKE_CASE__				)				)
def 						_snake_case(   SCREAMING_SNAKE_CASE__      :     Sequence[float]   ,      SCREAMING_SNAKE_CASE__      :     float				)							->				float:





    '''simple docstring'''






    A__   				=       0.0
    for coeff in reversed(SCREAMING_SNAKE_CASE__				):
        A__   				=       result * x + coeff
    return result


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




from __future__ import annotations

from typing import Any
def 						_snake_case(   SCREAMING_SNAKE_CASE__      :     list				)							->				int:





    '''simple docstring'''






    if not postfix_notation:
        return 0

    A__   				=       {'+', '-', '*', '/'}
    A__   				=       []

    for token in postfix_notation:
        if token in operations:
            A__				,						A__   				=       stack.pop(), stack.pop()
            if token == "+":
                stack.append(a + b				)
            elif token == "-":
                stack.append(a - b				)
            elif token == "*":
                stack.append(a * b				)
            else:
                if a * b < 0 and a % b != 0:
                    stack.append(a // b + 1				)
                else:
                    stack.append(a // b				)
        else:
            stack.append(int(SCREAMING_SNAKE_CASE__				)				)

    return stack.pop()


if __name__ == "__main__":
     import doctest

     doctest.testmod()

