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: [mg57506] Re: [mg57489] sum the elements of a list
  • From: "Matthias Bode" <lvsaba at hotmail.com>
  • Date: Tue, 31 May 2005 04:58:58 -0400 (EDT)
  • References: <200505300100.VAA26763@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello Morris,

use Apply (@@):

lst01 = {1, 2, 3};

Plus @@ lst01

6

Best regards,

MATTHIAS BODE
Torres Sofer III, depto. 9 A
Pedro Borda #1072
esq. Ismael Vásquez
COCHABAMBA/BOLIVIA

CEL: +591-70 71 56 64
TEL/FAX: +591-4-4 53 34 17
LVSABA at HOTMAIL.COM
Time indicated: UTC (=GMT).



----- Original Message ----- 
From: "morris" <mneedlem at bigpond.net.au>
To: mathgroup at smc.vnet.net
Subject: [mg57506] [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: Re: Two related question. Question 1
  • Next by Date: Re: Two related question. Question 1
  • Previous by thread: sum the elements of a list
  • Next by thread: beep in mathematica