1: \begin{abstract}
2: We present a worldline method for the calculation of Casimir energies for
3: scalar fields coupled to magnetodielectric media.
4: The scalar model we consider may be applied in arbitrary geometries,
5: and it corresponds exactly to one polarization of the electromagnetic
6: field in planar layered media.
7: Starting from the field theory for electromagnetism, we work with the two
8: decoupled polarizations in planar media and develop worldline path integrals,
9: which represent the two polarizations separately, for computing both
10: Casimir and Casimir--Polder potentials.
11: We then show analytically that the path integrals for the
12: transverse-electric (TE) polarization coupled to a dielectric medium
13: converge to the proper solutions in certain special cases,
14: including the Casimir--Polder potential of an atom near a planar interface,
15: and the Casimir energy due to two planar interfaces.
16: We also evaluate the path integrals numerically via Monte-Carlo path-averaging
17: for these cases, studying the convergence and performance of the resulting
18: computational techniques.
19: While these scalar methods are only exact in particular geometries,
20: they may serve as an approximation for Casimir energies for the vector
21: electromagnetic field in other geometries.
22: \end{abstract}
23: