The pseudocode for the numerically stable sample correlation coefficient rewritten in common math: