

'''simple docstring'''

def    A_  ( snake_case      ,       snake_case ):
  # "extended trapezoidal rule"
  # int(f) = dx/2 * (f1 + 2f2 + ... + fn)
  SCREAMING_SNAKE_CASE:Union[str, Any]						      =					(boundary[1] - boundary[0]) / steps
  SCREAMING_SNAKE_CASE:Optional[int]						      =					boundary[0]
  SCREAMING_SNAKE_CASE:Optional[int]						      =					boundary[1]
  SCREAMING_SNAKE_CASE:Union[str, Any]						      =					make_points(snake_case      ,       snake_case      ,       snake_case )
  SCREAMING_SNAKE_CASE:Tuple						      =					0.0
  y += (h / 2.0) * f(snake_case )
  for i in x_i:
    # print(i)
    y += h * f(snake_case )
  y += (h / 2.0) * f(snake_case )
  return y





def    A_  ( snake_case      ,       snake_case      ,       snake_case ):
  SCREAMING_SNAKE_CASE:Any						      =					a + h
  while x < (b - h):
    yield x
    SCREAMING_SNAKE_CASE:Dict						      =					x + h





def    A_  ( snake_case ):  # enter your function here
  SCREAMING_SNAKE_CASE:Union[str, Any]						      =					(x - 0) * (x - 0)
  return y





def    A_  ( ):
  SCREAMING_SNAKE_CASE:Any						      =					0.0  # Lower bound of integration
  SCREAMING_SNAKE_CASE:Tuple						      =					1.0  # Upper bound of integration
  SCREAMING_SNAKE_CASE:Tuple						      =					10.0  # define number of steps or resolution
  SCREAMING_SNAKE_CASE:List[str]						      =					[a, b]  # define boundary of integration
  SCREAMING_SNAKE_CASE:Optional[int]						      =					method_a(snake_case      ,       snake_case )
  print(F'''y = {y}''' )


if __name__ == "__main__":
    main()









'''simple docstring'''

from ....utils import logging


A_       						=							logging.get_logger(__name__)





class 							_snake_case (       _a						):
   def __init__( self			:      Optional[Any]     ,SCREAMING_SNAKE_CASE__			:      Optional[int]     ,SCREAMING_SNAKE_CASE__			:      Optional[Any]=None     ,SCREAMING_SNAKE_CASE__			:      Optional[int]=2_048							):
     SCREAMING_SNAKE_CASE:int						      =					config.__dict__
     SCREAMING_SNAKE_CASE:List[str]						      =					modal_hidden_size
     if num_labels:
       SCREAMING_SNAKE_CASE:str						      =					num_labels






