public static double Acosh(double x) { if (x < 1.0) throw new ArithmeticException("range exception"); return Math.Log(x + Math.Sqrt(x * x - 1)); }