Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a list

{-1.8, 1.44, 0.2736, -1.72514, 1.17612}

where each element stands for a value of x. e.g. $x1 = -1.8$, $x2 = 1.44$ and so on.

How can I find the summation of $ln(2x)$ without manuall calculating it? That is: $ln(2(-1.8)) + ln(2(1.44)) + \ldots + ln(2(1.17612))$

share|improve this question

2 Answers 2

list = {-1.8, 1.44, 0.2736, -1.72514, 1.17612};
Plus @@ Log[2 list]
share|improve this answer
list = {-1.8, 1.44, 0.2736, -1.72514, 1.17612};
Total[Log[2 #] & /@ list]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.