Problem 42808. Sum of logarithms

Created by HH in Community

Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use of the built-in sum function.


v = [1 2]

s = 0.301

Solution Stats

60.71% Correct | 39.29% Incorrect
Last solution submitted on Mar 09, 2019