Modelling LED illumination for the poor people.



On Wed, Mar 3, 2010 at 3:15 PM, Clemens Koller <clemens.ml at gmx.net> wrote:

> f(x):=(0.6*cos(atan((x-a)/h))+0.4)*1/((x-a)^2+h^2);

hmm, maybe you want f(x, a) := (same stuff) ?

> But how can I get the superimposition of all LEDs with that
> gap g (i.e. g:6)?
> I think about summing up all f(x,a).

how about:

  plot2d (sum (f (x, u[i]), i, 1, n), [x, -100, 100]);

where u : makelist(x0 + (i - 1)*g, i, 1, 10) or something like that.

Hope this helps,

Robert Dodier