



'''simple docstring'''





from __future__ import annotations

from math import pi, sqrt




def lowerCAmelCase  (__A  ,	__A):



     """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()









from __future__ import annotations




def 					lowerCamelCase__       (						A__       :					list[int | float]  ,			A__       :					int  ,			A__       :					int	):





       '''simple docstring'''



       if len(A__	) == 0:
              raise ValueError("""find_max() arg is an empty sequence"""	)
       if (
           left >= len(A__	)
           or left < -len(A__	)
           or right >= len(A__	)
           or right < -len(A__	)
       ):
              raise IndexError("""list index out of range"""	)
       if left == right:
              return nums[left]
       __lowerCamelCase   =						(left + right) >> 1  # the middle
       __lowerCamelCase   =						find_max(A__  ,			A__  ,			A__	)  # find max in range[left, mid]
       __lowerCamelCase   =						find_max(A__  ,			mid + 1  ,			A__	)  # find max in range[mid + 1, right]

       return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
       import doctest

       doctest.testmod(verbose=True)

