






"""simple docstring"""
def 			__UpperCamelCase	(		snake_case__					):

	'''simple docstring'''





	return 1 if digit in (0, 1) else (digit * factorial(digit - 1					))






def 			__UpperCamelCase	(		snake_case__					):

	'''simple docstring'''





	A_		:						Union[str, Any]	    =   0
	A_		:						str	    =   number
	while duplicate > 0:
		A_		:						Any	    =   divmod(snake_case__   ,   10					)
		fact_sum += factorial(snake_case__					)
	return fact_sum == number


if __name__ == "__main__":
							print("Program to check whether a number is a Krisnamurthy Number or not.")
							_lowerCAmelCase         =							int(input("Enter number: ").strip())
							print(
							    F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
							)









"""simple docstring"""
import math






def 			__UpperCamelCase	(		snake_case__   ,   snake_case__					):
	if (
	    not isinstance(snake_case__   ,   (int, float)					)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError("""power_factor must be a valid float value between -1 and 1."""					)
	return apparent_power * power_factor






def 			__UpperCamelCase	(		snake_case__   ,   snake_case__					):
	if (
	    not isinstance(snake_case__   ,   (int, float)					)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError("""power_factor must be a valid float value between -1 and 1."""					)
	return apparent_power * math.sqrt(1 - power_factor**2					)


if __name__ == "__main__":
							import doctest

							doctest.testmod()

