Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4121

Re: [Mathematica] special iterator

From lorenzo <lorenzo_ktm@yahoo.it>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: [Mathematica] special iterator
Date 2011-08-01 03:40 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j15773$b4v$1@smc.vnet.net> (permalink)

Show all headers | View raw


Thanks for all the answers,

I used Delete, apparently it returns a list without the j-th element and the original list is not affected by any side effect:

wi = Function[{x, j, func, data}, 
   Product[func[x - Delete[data, j][[i]]],  
   {i, 1, Length[data] - 1}]];

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: [Mathematica] special iterator lorenzo <lorenzo_ktm@yahoo.it> - 2011-08-01 03:40 +0000
  Re: special iterator "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-08-03 23:24 +0000

csiph-web