Skip to content

Commit b3a134b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5d3330a commit b3a134b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

physics/photoelectric_effect.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def maximum_kinetic_energy(
5959
if in_ev:
6060
return max(PLANCK_CONSTANT_EVS * frequency - work_function, 0)
6161
return max(PLANCK_CONSTANT_JS * frequency - work_function, 0)
62+
63+
6264
def work_function(
6365
frequency: float, kinetic_energy: float, in_ev: bool = False
6466
) -> float:
@@ -98,6 +100,7 @@ def work_function(
98100
return PLANCK_CONSTANT_EVS * frequency - kinetic_energy
99101
return PLANCK_CONSTANT_JS * frequency - kinetic_energy
100102

103+
101104
if __name__ == "__main__":
102105
import doctest
103106

0 commit comments

Comments
 (0)