




def 					UpperCamelCase__       (						lowercase__					:       float				):
		return -num if num < 0 else num



def 					UpperCamelCase__       (						lowercase__					:       list[int]				):
		if len(lowercase__				) == 0:
				raise ValueError("abs_min() arg is an empty sequence"				)
		snake_case						:  Tuple        =			x[0]
		for i in x:
				if abs_val(lowercase__				) < abs_val(lowercase__				):
						snake_case						:  int        =			i
		return j



def 					UpperCamelCase__       (						lowercase__					:       list[int]				):
		if len(lowercase__				) == 0:
				raise ValueError("abs_max() arg is an empty sequence"				)
		snake_case						:  Any        =			x[0]
		for i in x:
				if abs(lowercase__				) > abs(lowercase__				):
						snake_case						:  int        =			i
		return j



def 					UpperCamelCase__       (						lowercase__					:       list[int]				):
		if len(lowercase__				) == 0:
				raise ValueError("abs_max_sort() arg is an empty sequence"				)
		return sorted(lowercase__    ,       key=lowercase__				)[-1]



def 					UpperCamelCase__       (						):
		assert abs_val(0				) == 0
		assert abs_val(34				) == 34
		assert abs_val(-1000_0000_0000				) == 1000_0000_0000

		snake_case						:  int        =			[-3, -1, 2, -11]
		assert abs_max(lowercase__				) == -11
		assert abs_max_sort(lowercase__				) == -11
		assert abs_min(lowercase__				) == -1


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							test_abs_val()
							print(abs_val(-34))  # --> 34







"""simple docstring"""

def 					UpperCamelCase__       (						lowercase__					:       int				):
		if not isinstance(lowercase__    ,       lowercase__				):
				raise ValueError("double_factorial() only accepts integral values"				)
		if n < 0:
				raise ValueError("double_factorial() not defined for negative values"				)
		return 1 if n <= 1 else n * double_factorial(n - 2				)


if __name__ == "__main__":
							import doctest

							doctest.testmod()

