differt.em.refractive_index

Contents

differt.em.refractive_index#

refractive_index(epsilon_r, mu_r=None)[source]#

Compute the refractive index corresponding to relative permittivity and relative permeability.

The refractive index \(n\) is simply defined as

\[n = \sqrt{\epsilon_r\mu_r},\]

where \(\epsilon_r\) is the relative permittivity, and \(\mu_r\) is the relative permeability.

Parameters:
Return type:

Inexact[Array, '*batch']

Returns:

The refractive index.

The output dtype will only be complex if any of the provided arguments has a complex dtype.