Arithmetic mean or geometric mean ?

A quick sympy/numpy toy exercice.

Yoann Mocquin
4 min readDec 21, 2023

--

In this short post I want to show few things about arithmetic mean and geometric mean. We’ll use 2 variables that span the [0–1] segments. See this post as a toy snippet for sympy, numpy and matplotlib.

Analytical solution with sympy

--

--