We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8845967 + 6b2e06b commit 59bc44aCopy full SHA for 59bc44a
1 file changed
Electronics_Algorithms/resistance.py
@@ -1,10 +1,10 @@
1
def resistance_calculator(
2
- material: str, lenght: float, section: float, temperature: float
+ material: str, length: float, section: float, temperature: float
3
):
4
"""
5
material is a string indicating the material of the wire
6
7
- lenght is a floating value indicating the lenght of the wire in meters
+ length is a floating value indicating the length of the wire in meters
8
9
diameter is a floating value indicating the diameter of the wire in millimeters
10
@@ -35,6 +35,6 @@ def resistance_calculator(
35
temp_coefficient = materials[material]["coefficient"]
36
37
rho = rho_20deg * (1 + temp_coefficient * (temperature - 20))
38
- resistance = rho * lenght / section
+ resistance = rho * length / section
39
40
return f"{resistance}Ω"
0 commit comments