


from ..utils import DummyObject, requires_backends

class   A__ (   metaclass=snake_case__     ):







    """simple docstring"""

    __magic_name__        =		['torch', 'scipy']
    def __init__(	self      , *__snake_case      , **__snake_case   ):
         requires_backends(self      , ['''torch''', '''scipy''']   )
    @classmethod
    def 		a_      (	cls      , *__snake_case      , **__snake_case   ):
         requires_backends(cls      , ['''torch''', '''scipy''']   )




    @classmethod
    def 		a_      (	cls      , *__snake_case      , **__snake_case   ):
         requires_backends(cls      , ['''torch''', '''scipy''']   )








def       UpperCAmelCase__						(UpperCamelCase_							,UpperCamelCase_							,UpperCamelCase_    ):



     """simple docstring"""






     snake_case					=    len(UpperCamelCase_    )
     snake_case					=    [[0] * n for i in range(UpperCamelCase_    )]
     for i in range(UpperCamelCase_    ):
          snake_case					=    y_points[i]

     for i in range(2							,UpperCamelCase_    ):
          for j in range(UpperCamelCase_							,UpperCamelCase_    ):
               snake_case					=    (
                   (xa - x_points[j - i + 1]) * q[j][i - 1]
                   - (xa - x_points[j]) * q[j - 1][i - 1]
               ) / (x_points[j] - x_points[j - i + 1])

     return [q[n - 1][n - 1], q]


if __name__ == "__main__":
 import doctest

 doctest.testmod()




