MathGroup Archive 2009

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

Search the Archive

Re: Modifying List Elements.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99000] Re: [mg98948] Modifying List Elements.
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 23 Apr 2009 06:46:05 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

data = {{0, 1}, {1, 2}};

{0, 0.5} + # & /@ data

{{0, 1.5}, {1, 2.5}}


Bob Hanlon

---- nick.maj at mssm.edu wrote: 

=============
how can i add a value to an element in lists?

data:
{{0,1},{1,2}}

needed output:
{{0,1.5},{1,2.5}}

thanks in advance, nick.



  • Prev by Date: FindFit tips
  • Next by Date: fitting surface with Mathematica 6.0.3 and range of fitted values
  • Previous by thread: Re: Modifying List Elements.
  • Next by thread: Re: Modifying List Elements.