import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


__lowerCamelCase			: str							   =		HUGGINGFACE_HUB_CACHE


__lowerCamelCase			: Tuple							   =		"config.json"
__lowerCamelCase			: int							   =		"diffusion_pytorch_model.bin"
__lowerCamelCase			: Dict							   =		"diffusion_flax_model.msgpack"
__lowerCamelCase			: List[str]							   =		"model.onnx"
__lowerCamelCase			: str							   =		"diffusion_pytorch_model.safetensors"
__lowerCamelCase			: Tuple							   =		"weights.pb"
__lowerCamelCase			: Optional[Any]							   =		"https://huggingface.co"
__lowerCamelCase			: Dict							   =		default_cache_path
__lowerCamelCase			: Any							   =		"diffusers_modules"
__lowerCamelCase			: Optional[Any]							   =		os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
__lowerCamelCase			: Any							   =		["fp16", "non-ema"]
__lowerCamelCase			: Any							   =		".self_attn"


import math






def   lowerCAmelCase_						(					_snake_case      :  float      ,   _snake_case      :  float   )				->		float:







	'''simple docstring'''


	return math.pow(_snake_case      ,   2   ) - a






def   lowerCAmelCase_						(					_snake_case      :  float   )				->		float:







	'''simple docstring'''


	return 2 * x






def   lowerCAmelCase_						(					_snake_case      :  float   )				->		float:







	'''simple docstring'''


	__magic_name__		:		Optional[int]	   =     2.0

	while start <= a:
		__magic_name__		:		str	   =     math.pow(_snake_case      ,   2   )

	return start






def   lowerCAmelCase_						(					_snake_case      :  float      ,   _snake_case      :  int = 9999      ,   _snake_case      :  float = 0.00_000_000_000_001   )				->		float:







	'''simple docstring'''


	if a < 0:
		raise ValueError("math domain error"   )

	__magic_name__		:		Optional[int]	   =     get_initial_point(_snake_case   )

	for _ in range(_snake_case   ):
		__magic_name__		:		int	   =     value
		__magic_name__		:		str	   =     value - fx(_snake_case      ,   _snake_case   ) / fx_derivative(_snake_case   )
		if abs(prev_value - value   ) < tolerance:
			return value

	return value


if __name__ == "__main__":
				from doctest import testmod

				testmod()
