electricpy.natfreq

electricpy.natfreq(C, L, Hz=True)[source]

Natural Frequency Evaluator.

Evaluates the natural frequency (resonant frequency) of a circuit given the circuit’s C and L values. Defaults to returning values in Hz, but may also return in rad/sec.

\[freq=\frac{1}{\sqrt{L*C}*(2*\pi)}\]
Parameters:
C : float

Capacitance Value in Farads.

L : float

Inductance in Henries.

Hz : bool, optional

Control argument to set return value in either Hz or rad/sec; default=True.

Returns:

freq – Natural (Resonant) frequency, will be in Hz if argument Hz is set True (default), or rad/sec if argument is set False.

Return type:

float