On 4/1/07, Zoho Vignochi <zoho.vignochi at gmail.com> wrote:
> On Sat, 2007-31-03 at 10:21 -0700, Robert Dodier wrote:
> > diagram (L) := block (map (getpoints, L), map (lambda ([x],
> > ['discrete, x]), %%), plot2d (%%));
> I am not sure how this code operates. If I want a graph of the first n
> bifurcations, I would like to pass n to the function "diagram" and have
> it call on getpoints n times (passing it an index from 1 to n). Then in
> "diagram" I want to plot those n sets of points on the same graph. I
> can't see in the above code what I should supply for "L".
Oh --- a for loop from 1 to n is equivalent to L = [1, 2, 3, ..., n].
I'm thinking it would be convenient to include noninteger values,
or to exclude some values, depending on what you're trying to do,
so that's why I wrote that stuff in terms of an explicit list.
(Just to be clear --- Maxima doesn't understand the ellipsis
notation [1, 2, 3, ..., n]. You would have to write makelist(i, i, 1, n)
instead, where n is an integer.)
Hope this helps,
Robert