Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: sum the elements of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57523] Re: [mg57489] sum the elements of a list
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 31 May 2005 04:59:24 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

div=Divisors[28]

{1,2,4,7,14,28}

Total[div]

56

Tr[div]

56

Plus@@div

56


Bob Hanlon

> 
> From: "morris" <mneedlem at bigpond.net.au>
To: mathgroup at smc.vnet.net
> Date: 2005/05/29 Sun PM 09:00:06 EDT
> Subject: [mg57523] [mg57489]  sum the elements of a list
> 
> After I do Divisors[28], I wish to add the elements of the list. How is this 
> possible?
> 
> Thanks
> Morris 
> 
> 
> 


  • Prev by Date: reducing the time of constructing a List
  • Next by Date: opposite of partition
  • Previous by thread: Re: sum the elements of a list
  • Next by thread: Related quastions. Question 2