Skip to content

Commit 3761a49

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

physics/photoelectric_effect.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,19 @@ 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-
62+
63+
6364
def work_function(
6465
frequency: float, kinetic_energy: float, in_ev: bool = False
6566
) -> float:
6667
"""
67-
Calculates the work function of a surface using the given
68+
Calculates the work function of a surface using the given
6869
frequency and kinetic energy.
6970
7071
Parameters:
7172
frequency (float): Frequency of the electromagnetic wave.
7273
kinetic_energy (float): Kinetic energy of emitted electron.
73-
in_ev (bool, optional): True if frequency and
74+
in_ev (bool, optional): True if frequency and
7475
kinetic energy are in eV.
7576
7677
Returns:

0 commit comments

Comments
 (0)