
"""simple docstring"""







def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE )  ->     int:







							"""simple docstring"""


							return 10 - x * x
def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE							,    SCREAMING_SNAKE_CASE )  ->     Union[str, Any]:







							"""simple docstring"""


							if equation(SCREAMING_SNAKE_CASE ) * equation(SCREAMING_SNAKE_CASE ) >= 0:
														raise ValueError("Wrong space!" )

							__snake_case     			=       a
							while (b - a) >= 0.01:
														# Find middle point
														__snake_case     			=       (a + b) / 2
														# Check if middle point is root
														if equation(SCREAMING_SNAKE_CASE ) == 0.0:
																					break
														# Decide the side to repeat the steps
														if equation(SCREAMING_SNAKE_CASE ) * equation(SCREAMING_SNAKE_CASE ) < 0:
																					__snake_case     			=       c
														else:
																					__snake_case     			=       c
							return c


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		print(bisection(-2, 5))
		print(bisection(0, 6))


"""simple docstring"""







from __future__ import annotations

from typing import Any
def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE )  ->     int:







							"""simple docstring"""


							if not postfix_notation:
														return 0

							__snake_case     			=       {"+", "-", "*", "/"}
							__snake_case     			=       []

							for token in postfix_notation:
														if token in operations:
																					__snake_case			,   __snake_case     			=       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()
