We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fed8e9 commit 3761a49Copy full SHA for 3761a49
physics/photoelectric_effect.py
@@ -59,18 +59,19 @@ def maximum_kinetic_energy(
59
if in_ev:
60
return max(PLANCK_CONSTANT_EVS * frequency - work_function, 0)
61
return max(PLANCK_CONSTANT_JS * frequency - work_function, 0)
62
-
+
63
64
def work_function(
65
frequency: float, kinetic_energy: float, in_ev: bool = False
66
) -> float:
67
"""
- Calculates the work function of a surface using the given
68
+ Calculates the work function of a surface using the given
69
frequency and kinetic energy.
70
71
Parameters:
72
frequency (float): Frequency of the electromagnetic wave.
73
kinetic_energy (float): Kinetic energy of emitted electron.
- in_ev (bool, optional): True if frequency and
74
+ in_ev (bool, optional): True if frequency and
75
kinetic energy are in eV.
76
77
Returns:
0 commit comments