Compute the Hopf function for radiative transfer.
This function provides a rational polynomial approximation for the Hopf
function, used in analytical T-P profiles.
- Parameters:
- tau
ndarray Optical depth (dimensionless).
- Returns:
- hopf
ndarray Hopf function value at the given optical depth.