Skip to content

Commit 38d7fe3

Browse files
Fix documentation formatting issues
Updated the docstring to improve clarity and accuracy regarding the photoelectric effect and its parameters.
1 parent f124d7e commit 38d7fe3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

physics/photoelectric_effect.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
"""
2-
The photoelectric effect is the emission of electrons from a material when electromagnetic radiation (such as light) falls on it.
2+
The photoelectric effect is the emission of electrons from a material when
3+
electromagnetic radiation (such as light) falls on it.
34
Electrons emitted in this manner are called photoelectrons.
45
5-
In 1905, Albert Einstein explained the photoelectric effect by proposing that light consists of discrete packets of energy known as photons or light quanta.
6-
Each photon carries energy proportional to the frequency ν of the incident electromagnetic radiation. The proportionality constant h is known as Planck's constant.
6+
In 1905, Albert Einstein explained the photoelectric effect by proposing that
7+
light consists of discrete packets of energy known as photons or light quanta.
8+
9+
Each photon carries energy proportional to the frequency v of the incident
10+
electromagnetic radiation. The proportionality constant h is known as
11+
Planck's constant.
712
813
The maximum kinetic energy of the emitted electrons is given by:
914
10-
K_max = Φ
15+
K_max = hvW
1116
1217
where:
1318
h = Planck's constant
14-
ν = frequency of the incident radiation
15-
Φ = work function of the material
19+
v = frequency of the incident radiation
20+
W = work function of the material
1621
17-
The work function Φ is the minimum energy required to remove an electron
22+
The work function W is the minimum energy required to remove
23+
an electron
1824
from the surface of the material.
1925
2026
Reference: https://en.wikipedia.org/wiki/Photoelectric_effect
@@ -65,3 +71,4 @@ def maximum_kinetic_energy(
6571
import doctest
6672

6773
doctest.testmod()
74+

0 commit comments

Comments
 (0)