private static object SumSq(List <Expression> p) { var t = new Tally(p); return(t.NumericValues().Sum(v => Math.Pow(v, 2))); }