Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Summing items in a list' topicStudent Support Forum > General > "Summing items in a list"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/17/05 11:25am

In the newer versions you can use Total
Total[{1,2,3}] will generate 6 as expected
For older versions you cann alwasy Apply Plus

Apply[Plus,{1,2,3}]
or
Plus@@{1,2,3}

yehuda



URL: ,

Subject (listing for 'Summing items in a list')
Author Date Posted
Summing items in a list Luke 09/14/05 9:52pm
Re: Summing items in a list Daniele Lupo 09/17/05 02:44am
Re: Summing items in a list yehuda ben-s... 09/17/05 11:25am
Re: Summing items in a list Alvin 09/27/05 7:48pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic