Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: particle interaction
Date: Mon, 4 Feb 2008 17:52:32 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 29
Message-ID: <fo7jd0$hsh$1@canopus.cc.umanitoba.ca>
References: <fo6o84$mcu$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1202147552 18321 192.70.172.160 (4 Feb 2008 17:52:32 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Mon, 4 Feb 2008 17:52:32 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:449207


In article <fo6o84$mcu$1@fred.mathworks.com>,
matias nordin <matias.nordin@gmail.com> wrote:

>I would like to distribute N particles on a line (symmetric
>boundaries) by a function, say f(x)=sin(x), so that a small
>value gives a small spatial distances while a large value
>gives a big spatial distance. In example if f(x)= constant,
>the spatial distance between all particles is the same. So
>f(x) acts as a potential and the particles repell each other.

Hmmm, so let f(x) = 0. That's a constant. But 0 would seem
to be a small value, so that would imply small spacial distances
rather than the possibly-large spatial distances you would get
if you had a small number of particles equidistant in the interval
("the spatial distance between all particles is the same").

Or let f(x) be -1. That's a constant too. But since f(x) acts
as a repelling potential, a negative value would imply attraction,
which would imply clumping rather than equidistance.

Recall that you said "say f(x) = sin(x)" and recall that sin(x)
can be negative.

Sooo.. your problem does not yet appear to me to be well-defined.
(The plausibility of the half-formed solutions that I have in mind
will depend upon how you refine the problem.)
-- 
   "Any sufficiently advanced bug is indistinguishable from a feature."
   -- Rich Kulawiec