Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

how to sum lists of unequal length?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70352] how to sum lists of unequal length?
  • From: Arkadiusz.Majka at gmail.com
  • Date: Sat, 14 Oct 2006 03:06:41 -0400 (EDT)

Hi all,

I have lists of unknown and unequal lengths. I want to sum them, e.g

{a1,a2,a3}+{b1,b2,b3,b4,b5} and obtain result
{a1+b1,a2+b2,a3+b3,b4,b5}. Simply filling by zeros of the shorter list
is impossible because I have no idea how many zeros I have to pad.

Please, help

Arek


  • Prev by Date: Recursion
  • Next by Date: Re: How do you open all cells?
  • Previous by thread: Recursion
  • Next by thread: Re: how to sum lists of unequal length?