MathGroup Archive 2000

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

Search the Archive

Re: Applying position-dependent functions on lists.


On 24 Apr 2000 01:44:53 -0400, Manolis Petrakis <MPetrakis at yahoo.com> wrote:
>I'm trying to write a program for solving the 2-D Ising model, but not using
>the standard Do[...] approach, to modify every spin on a spin list, using
>the Metropolis Function.

What about MapIndexed[]?

>
>This problem can be generalized if anyone wants to apply functions on
>matrices that depend on element positions, 

That's what MapIndexed[] does

>and require the values of nearest neighbor elements.

hmm ...

Hans Friedrich Steffani

-- 
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
mailto:hans.steffani at e-technik.tu-chemnitz.de
http://www.tu-chemnitz.de/~hfst/


  • Prev by Date: RE: Re: Plotting bounded domains
  • Next by Date: Re: ...can't help, but let me muddy the waters a bit. ;-) ...
  • Previous by thread: Re: Applying position-dependent functions on lists.
  • Next by thread: how to XY plot a list of complex numbers?