Magnus coefficients (a=17.62, b=243.12 °C) are the WMO-recommended values. The wet-bulb temperature uses the Stull approximation (accuracy about ±0.3 °C near 1013 hPa).
Cyan solid line = saturation vapor pressure e_s(T) / dashed = RH iso-lines (20/40/60/80 %) / red dot = current (T, e) / green cross = dew point location (T_d, e)
The Magnus approximation expresses the saturation vapor pressure as a function of temperature only, with an error below 0.4 percent over the HVAC and meteorological range of minus 40 to plus 50 degrees Celsius.
Saturation vapor pressure e_s (T in °C, e_s in hPa):
$$e_s(T) = 6.112\,\exp\!\left(\dfrac{17.62\,T}{243.12 + T}\right)$$Actual vapor pressure e and dew point T_d (γ is an auxiliary variable):
$$e = \dfrac{\mathrm{RH}}{100}\,e_s(T), \qquad T_d = \dfrac{243.12\,\gamma}{17.62 - \gamma}, \quad \gamma = \ln\!\dfrac{\mathrm{RH}}{100} + \dfrac{17.62\,T}{243.12 + T}$$Humidity ratio w (mass of water vapor per kilogram of dry air, g/kg DA):
$$w = 622\,\dfrac{e}{p_\text{atm} - e}$$Stull approximation for the wet-bulb T_w (near 1013 hPa, RH in %):
$$T_w \approx T\,\arctan\!\big(0.1520\sqrt{\mathrm{RH}+8.314}\big) + \arctan(T+\mathrm{RH}) - \arctan(\mathrm{RH}-1.676) + 0.00392\,\mathrm{RH}^{1.5}\arctan(0.0231\,\mathrm{RH}) - 4.686$$Condensation starts on any surface whose temperature falls below the dew point T_d.