Precision extraction of $f$ and $g$