log10sumk
Log10sumk is a function that returns the base-10 logarithm of the sum of k nonnegative real numbers. Given numbers a1, a2, ..., ak with ai ≥ 0, log10sumk(a1,...,ak) = log10( sum_{i=1}^k ai ). If the sum is zero, the result is undefined in the real numbers (often represented as −∞ in the extended real line). If negative inputs are allowed, the expression is not defined without additional handling.
Computation and numerical stability are common considerations. Directly computing the sum then applying log10 can suffer
Domain and variants: log10sumk is typically defined for nonnegative inputs. With negative inputs, one would need
Example: for a = [1, 10, 100], sum = 111, so log10sumk(a) = log10(111) ≈ 2.0458.