Problem 42808. Sum of logarithms
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.
Example:
v = [1 2]
s = 0.301
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers87
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15513 Solvers
-
1537 Solvers
-
Set the array elements whose value is 13 to 0
1362 Solvers
-
1002 Solvers
-
Matrix of almost all zeros, except for main diagonal
181 Solvers
More from this Author45
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!