





'''simple docstring'''




def 						__lowerCamelCase			(	UpperCAmelCase_					,				UpperCAmelCase_							)   ->float:
	if mass < 0:
		raise ValueError('The mass of a body cannot be negative'							)
	return 0.5 * mass * abs(UpperCAmelCase_							) * abs(UpperCAmelCase_							)


if __name__ == "__main__":
			import doctest

			doctest.testmod(verbose=True)










'''simple docstring'''




import cmath
import math




def 						__lowerCamelCase			(	UpperCAmelCase_					,				UpperCAmelCase_					,				UpperCAmelCase_					,				UpperCAmelCase_							)   ->complex:
	snake_case__	       =   math.radians(UpperCAmelCase_							)
	snake_case__	       =   math.radians(UpperCAmelCase_							)

	# Convert voltage and current to rectangular form
	snake_case__	       =   cmath.rect(UpperCAmelCase_					,				UpperCAmelCase_							)
	snake_case__	       =   cmath.rect(UpperCAmelCase_					,				UpperCAmelCase_							)

	# Calculate apparent power
	return voltage_rect * current_rect


if __name__ == "__main__":
			import doctest

			doctest.testmod()



