electronics.resonant_frequency¶
An LC circuit, also called a resonant circuit, tank circuit, or tuned circuit, is an electric circuit consisting of an inductor, represented by the letter L, and a capacitor, represented by the letter C, connected together. The circuit can act as an electrical resonator, an electrical analogue of a tuning fork, storing energy oscillating at the circuit’s resonant frequency. Source: https://en.wikipedia.org/wiki/LC_circuit
Functions¶
|
This function can calculate the resonant frequency of LC circuit, |
Module Contents¶
- electronics.resonant_frequency.resonant_frequency(inductance: float, capacitance: float) tuple ¶
This function can calculate the resonant frequency of LC circuit, for the given value of inductance and capacitnace.
Examples are given below: >>> resonant_frequency(inductance=10, capacitance=5) (‘Resonant frequency’, 0.022507907903927652) >>> resonant_frequency(inductance=0, capacitance=5) Traceback (most recent call last):
…
ValueError: Inductance cannot be 0 or negative >>> resonant_frequency(inductance=10, capacitance=0) Traceback (most recent call last):
…
ValueError: Capacitance cannot be 0 or negative