Resonant Frequency & Electrical Impedance - #6983
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
The tuple contains the values of inductance and capacitance that are required for calculating the resonant frequency of the LC Circuit.
|
|
||
| else: | ||
| return ( | ||
| "resonant_frequency", |
There was a problem hiding this comment.
Why are you returning the function name?
There was a problem hiding this comment.
It is also the name of the value that the function is returning.
Co-authored-by: Caeden <caedenperelliharris@gmail.com>
Co-authored-by: Caeden <caedenperelliharris@gmail.com>
Co-authored-by: Caeden <caedenperelliharris@gmail.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Co-authored-by: Paul <56065602+ZeroDayOwl@users.noreply.github.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
| @@ -0,0 +1,41 @@ | |||
| # https://en.wikipedia.org/wiki/Electrical_impedance | |||
There was a problem hiding this comment.
Could you add a brief description here about the impedance?
There was a problem hiding this comment.
I have added the description for electrical impedance.
| @@ -0,0 +1,41 @@ | |||
| # https://en.wikipedia.org/wiki/LC_circuit | |||
There was a problem hiding this comment.
Same as before, perhaps add a brief explanation of LC circuits.
There was a problem hiding this comment.
I have added the description for LC Circuit.
There was a problem hiding this comment.
These doctests are good, however following general conventions, maybe you can move the successful case/s before the failed ones.
There was a problem hiding this comment.
I have updated the doctests according to the general conventions.
for more information, see https://pre-commit.ci
Co-authored-by: Paul <56065602+ZeroDayOwl@users.noreply.github.com>
Co-authored-by: Paul <56065602+ZeroDayOwl@users.noreply.github.com>
Co-authored-by: Paul <56065602+ZeroDayOwl@users.noreply.github.com>
for more information, see https://pre-commit.ci

Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.