

from __future__ import annotations

SCREAMING_SNAKE_CASE						:str      =			"""Alexander Joslin"""




def        lowerCAmelCase(	SCREAMING_SNAKE_CASE_       )->		int:



    """simple docstring"""






    if number <= 0:
        UpperCamelCase_          =		f"n must be greater than 0. Got n = {number}"
        raise ValueError(SCREAMING_SNAKE_CASE_       )

    UpperCamelCase_          =		[number + 1] * (number + 1)

    # starting position
    UpperCamelCase_          =		0
    for i in range(1       ,		SCREAMING_SNAKE_CASE_       ):
        UpperCamelCase_          =		min(table[i + 1]       ,		table[i] + 1       )
        # check if out of bounds
        if i * 2 <= number:
            UpperCamelCase_          =		min(table[i * 2]       ,		table[i] + 1       )
        # check if out of bounds
        if i * 3 <= number:
            UpperCamelCase_          =		min(table[i * 3]       ,		table[i] + 1       )
    return table[number]


if __name__ == "__main__":
 import doctest

 doctest.testmod()

'''simple docstring'''




from scipy.constants import g





def      _UpperCAmelCase    (							_UpperCamelCase    :	float,   _UpperCamelCase    :	float   )	->      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')






