


def   lowerCamelCase_       (					UpperCAmelCase__      ):



      """simple docstring"""




      if num < 0:
            return -1
      return 1 if num else 0




def   lowerCamelCase_       (					):



      """simple docstring"""




      assert signum(5      ) == 1
      assert signum(-5      ) == -1
      assert signum(0      ) == 0


if __name__ == "__main__":
 print(signum(12))
 print(signum(-12))
 print(signum(0))



from collections.abc import Callable

A_    :					Any             =Callable[[float], float]  # type alias for a real -> real function




def   lowerCamelCase_       (					UpperCAmelCase__       ,    UpperCAmelCase__       ,    UpperCAmelCase__       ,    ):



						"""simple docstring"""




						a_					=		float(UpperCAmelCase__      )
						while True:
												try:
																		a_					=		prev_guess - function(UpperCAmelCase__      ) / derivative(UpperCAmelCase__      )
												except ZeroDivisionError:
																		raise ZeroDivisionError("""Could not find root"""      ) from None
												if abs(prev_guess - next_guess      ) < 10**-5:
																		return next_guess
												a_					=		next_guess




def   lowerCamelCase_       (					UpperCAmelCase__      ):



						"""simple docstring"""




						return (x**3) - (2 * x) - 5




def   lowerCamelCase_       (					UpperCAmelCase__      ):



						"""simple docstring"""




						return 3 * (x**2) - 2


if __name__ == "__main__":
	print(newton(f, fa, 3))