Returns the in-medium wavelength after accounting for the refractive index. Frequency (and photon energy) are unchanged; only the spatial period shortens.
Examples
wavelength_in_medium(500, n = 1.336) # seawater: ~374 nm in medium
#> [1] 374.2515
wavelength_in_medium(c(400, 500, 600), n = 1.5)
#> [1] 266.6667 333.3333 400.0000