A generalized arithmetic geometric mean by R. Carls