

from __future__ import annotations
def        UpperCAmelCase_     (		_A       ):





     '''simple docstring'''




     if len(_A       ) < 2:
          raise ValueError('''Monogons and Digons are not polygons in the Euclidean space'''       )
     if any(i <= 0 for i in nums       ):
          raise ValueError('''All values must be greater than 0'''       )
     SCREAMING_SNAKE_CASE__					=					nums.copy()
     copy_nums.sort()
     return copy_nums[-1] < sum(copy_nums[:-1]       )


if __name__ == "__main__":
       import doctest

       doctest.testmod()





from collections.abc import Callable

import numpy as np
def        UpperCAmelCase_     (		_A   ,	_A   ,	_A   ,	_A   ,	_A       ):





     '''simple docstring'''




     SCREAMING_SNAKE_CASE__					=					int(np.ceil((x_end - xa) / step_size       )       )
     SCREAMING_SNAKE_CASE__					=					np.zeros((n + 1,)       )
     SCREAMING_SNAKE_CASE__					=					ya
     SCREAMING_SNAKE_CASE__					=					xa

     for k in range(_A       ):
          SCREAMING_SNAKE_CASE__					=					y[k] + step_size * ode_func(_A   ,	y[k]       )
          SCREAMING_SNAKE_CASE__					=					y[k] + (
              (step_size / 2) * (ode_func(_A   ,	y[k]       ) + ode_func(x + step_size   ,	_A       ))
          )
          x += step_size

     return y


if __name__ == "__main__":
       import doctest

       doctest.testmod()


