MathGroup Archive 2003

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

Search the Archive

Re: Simple Question -- Incrementing All Elemnts in A list by 1

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44347] Re: Simple Question -- Incrementing All Elemnts in A list by 1
  • From: Bill Rowe <readnewscix at mail.earthlink.net>
  • Date: Wed, 5 Nov 2003 10:02:13 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 11/4/03 at 3:24 AM, thiery.balser at gmx.net (Thiery Balser) wrote:


> I would like to have all elements in a list incremted by a given number
> without defining a supplementary function.

Simply add the number, e.g.

In[1]:=
m={2,3,4,45,98};
m+1

Out[2]=
{3,4,5,46,99}
--
To reply via email subtract one hundred and nine


  • Prev by Date: Re: Trying to use Mathematica as "word processor" for my math homework
  • Next by Date: Mathematica 5 crashes
  • Previous by thread: Re: Simple Question -- Incrementing All Elemnts in A list by 1
  • Next by thread: Re: Simple Question -- Incrementing All Elemnts in A list by 1