

"""simple docstring"""





def   _A  (  UpperCamelCase_     :       float,			UpperCamelCase_     :       float)	->						float:
   '''simple docstring'''


   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"""





def   _A  (  UpperCamelCase_     :       list[int])	->						float:
   '''simple docstring'''


   if not nums:  # Makes sure that the list is not empty
      raise ValueError("List is empty")

   __lowercase								=						sum(UpperCamelCase_) / len(UpperCamelCase_)  # Calculate the average
   return sum(abs(x - average) for x in nums) / len(UpperCamelCase_)


if __name__ == "__main__":
   import doctest

   doctest.testmod()




