Critical angle and total internal reflection

The values filled in are an example: light inside N-BK7 glass (n = 1.5168 at 587.6 nm) meeting a surface with air, taken as n = 1.

Input parameters
n₁ = refractive index of the medium the light travels in
n₂ = refractive index of the medium beyond the surface
$$ \theta_c = \arcsin\left(\frac{n_2}{n_1}\right) $$
θc = —
Output parameters
θc = critical angle, measured from the surface normal. Light meeting the surface at a larger angle is totally internally reflected. There is a critical angle only when n₁ > n₂.

Formula: Snell's law with the refracted ray at 90°, as in E. Hecht, Optics, 5th ed. (Pearson, 2017).