



'''simple docstring'''





from ..utils import DummyObject, requires_backends







class     UpperCAmelCase_       (       metaclass=_a	):
    """simple docstring"""







    lowercase					=		["torch", "scipy"]




    def __init__(    self					:     int ,     *snake_case_					:     List[Any] ,     **snake_case_					:     Optional[Any]						):
          requires_backends(self ,     ["""torch""", """scipy"""]						)




    @classmethod
    def lowerCamelCase       (    cls					:     int ,     *snake_case_					:     Any ,     **snake_case_					:     List[Any]						):
          requires_backends(cls ,     ["""torch""", """scipy"""]						)




    @classmethod
    def lowerCamelCase       (    cls					:     Optional[int] ,     *snake_case_					:     List[Any] ,     **snake_case_					:     str						):
          requires_backends(cls ,     ["""torch""", """scipy"""]						)





'''simple docstring'''





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase     ,   _lowerCAmelCase		)		-> float:
      snake_case__  :    str    						=      (num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
      # formula for sum of series
      return total





def 						__snake_case(				)		-> List[str]:
      print(sum_of_series(1     ,   1     ,   10		)		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
