

'''simple docstring'''





from math import ceil






def 							_lowerCAmelCase (      __magic_name__	:    int = 1001	)							->     int:
						lowercase   :       Any								=1

						for i in range(1      ,   int(ceil(n / 2.0	)	)	):
												lowercase   :       Optional[Any]								=2 * i + 1
												lowercase   :       List[str]								=2 * i
												lowercase   :       Union[str, Any]								=total + 4 * odd**2 - 6 * even

						return total


if __name__ == "__main__":
							import sys

							if len(sys.argv) == 1:
														print(solution())
							else:
														try:
																					UpperCamelCase_							=					int(sys.argv[1])
																					print(solution(n))
														except ValueError:
																					print("""Invalid entry - please enter a number""")








'''simple docstring'''





import math






def 							_lowerCAmelCase (      __magic_name__	:    float      ,   __magic_name__	:    float	)							->     float:
						if (
						    not isinstance(__magic_name__      ,   (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 							_lowerCAmelCase (      __magic_name__	:    float      ,   __magic_name__	:    float	)							->     float:
						if (
						    not isinstance(__magic_name__      ,   (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()





