Combined apparent magnitude of two stars.
double sum(double m1, double m2) { final x = 0.4 * (m2 - m1); return m2 - 2.5 * math.log(math.pow(10, x).toDouble() + 1) / math.ln10; }