Compute power factor PF = P over S from active and apparent power, together with reactive power and the phase angle.
PF = P / S = cos φ。