




'''simple docstring'''



from __future__ import annotations

from math import pi, sqrt







def       _UpperCamelCase			(_lowerCamelCase				:  float ,						_lowerCamelCase				:  float						)-> tuple:




     '''simple docstring'''





     if inductance <= 0:
          raise ValueError('''Inductance cannot be 0 or negative'''						)

     elif capacitance <= 0:
          raise ValueError('''Capacitance cannot be 0 or negative'''						)

     else:
          return (
              "Resonant frequency",
              float(1 / (2 * pi * (sqrt(inductance * capacitance						)))						),
          )


if __name__ == "__main__":
     import doctest

     doctest.testmod()












'''simple docstring'''



def       _UpperCamelCase			(_lowerCamelCase				:  int ,						_lowerCamelCase				:  int ,						_lowerCamelCase				:  int						)-> float:




     '''simple docstring'''





     __snake_case            =	(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
     # formula for sum of series
     return total







def       _UpperCamelCase			()-> str:




     '''simple docstring'''





     print(sum_of_series(1 ,						1 ,						10						)						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()






