set formulas for 3 variables site:math.stackexchange.com - Search