



"""simple docstring"""






from __future__ import annotations

from math import pi, sqrt




def 			snake_case		(		lowerCAmelCase_  ,						lowerCAmelCase_	)						->				tuple:

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






from collections.abc import Callable

import numpy as np





def 				A_       ( snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__       ,					snake_case__		)					->  np.ndarray:
			_UpperCamelCase					:str					     =	int(np.ceil((x_end - xa) / step_size		)		)
			_UpperCamelCase					:Union[str, Any]					     =	np.zeros((n + 1,)		)
			_UpperCamelCase					:List[str]					     =	ya
			_UpperCamelCase					:Any					     =	xa

			for k in range(snake_case__		):
						_UpperCamelCase					:Union[str, Any]					     =	y[k] + step_size * ode_func(snake_case__       ,					y[k]		)
						x += step_size

			return y


if __name__ == "__main__":
					import doctest

					doctest.testmod()

