STINNER Victor <vstin...@redhat.com> added the comment: Computing the geometric mean of numbers require to compute the product of these numbers: https://en.wikipedia.org/wiki/Geometric_mean
The geometric mean can be used to summarize benchmark results using different units to get a single number. -- When computing the product of floats, is there a smart implementation reducing the error? I'm asking because math.fsum() doesn't use a naive loop but a smart implementation to minimize the error. -- Mark Dickinson: > On this subject, some effort has been made in the past to make (almost) all > the math module functions behave consistently with respect to things like > exceptions, overflow, infinities, nans, signed zeros, etc. "versus" Rémi Lapeyre: > A naive implementation would also support user-defined types which would > probably be a good thing IMO Would it make sense to only implement product for an iterable of floats, as math.fsum()? ---------- nosy: +vstinner _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35606> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com