
"""simple docstring"""






from itertools import combinations, product



def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__ ,      __magic_name__ ,      __magic_name__			)	->bool:
			if xa == ya == 0 or xa == ya == 0:
						return False
			__lowercase						      =					xa * xa + ya * ya
			__lowercase						      =					xa * xa + ya * ya
			__lowercase						      =					(xa - xa) * (xa - xa) + (ya - ya) * (ya - ya)
			return (
			    a_square + b_square == c_square
			    or a_square + c_square == b_square
			    or b_square + c_square == a_square
			)



def     lowerCAmelCase__ (		__magic_name__ = 5_0			)	->int:
			return sum(
			    1
			    for pta, pta in combinations(product(range(limit + 1			) ,      repeat=2			) ,      2			)
			    if is_right(*__magic_name__ ,      *__magic_name__			)			)


if __name__ == "__main__":
					print(F"{solution() = }")







"""simple docstring"""






from scipy.constants import g



def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__			)	->float:
			if mass < 0:
						# handling of negative values of mass
						raise ValueError("The mass of a body cannot be negative"			)
			if height < 0:
						# handling of negative values of height
						raise ValueError("The height above the ground cannot be negative"			)
			return mass * g * height


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

					testmod(name='''potential_energy''')





