def viscosity(temp, salt):
    """Calculate dynamic viscosity of sea water

    :param temp: Temperature in degrees Celcius
    :param salt: Salinity in PSU
    :returns: Viscosity of seawater in kg m^-1 s^-1
    """
    return 0.001 * (1.7915 + temp * (-0.0538 + temp * 0.0007) + 0.0023 * salt)