snompy.sample.refl_coef_qs_single#

sample.refl_coef_qs_single(eps_i, eps_j)#

Return the quasistatic reflection coefficient for an interface between two materials.

Calculated using (eps_j - eps_i) / (eps_j + eps_i), where eps_i and eps_j are the permitivitties of two materials i and j.

Parameters:
eps_icomplex

Dielectric function of material i.

eps_jcomplex, default 1 + 0j

Dielectric function of material j.

Returns:
betacomplex

Quasistatic reflection coefficient of the sample.

See also

permitivitty

The inverse of this function.

Examples

Works with real inputs:

>>> beta = refl_coef_qs_single(1, 3)
>>> beta.item()
0.5

Works with complex inputs:

>>> beta = refl_coef_qs_single(1, 1 + 1j)
>>> beta.item()
(0.2+0.4j)

Performs vectorised operations:

>>> refl_coef_qs_single([1, 3], [3, 5])
array([0.5 , 0.25])
>>> refl_coef_qs_single([1, 3], [[1], [3]])
array([[ 0. , -0.5],
      [ 0.5,  0. ]])