Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.