thanks..
On Sat, Mar 28, 2009 at 1:00 AM, <maxima-request at math.utexas.edu> wrote:
> Send Maxima mailing list submissions to
> maxima at math.utexas.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.math.utexas.edu/mailman/listinfo/maxima
> or, via email, send a message with subject or body 'help' to
> maxima-request at math.utexas.edu
>
> You can reach the person managing the list at
> maxima-owner at math.utexas.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Maxima digest..."
>
>
> Today's Topics:
>
> 1. Re: Clozure CL + Windows XP (Barton Willis)
> 2. Re: Fun with lists (Kostas Oikonomou)
> 3. Re: Fun with lists (Stavros Macrakis)
> 4. Re: Fun with lists (Wilhelm Haager)
> 5. Re: Fun with lists (reyssat)
> 6. Re: Fun with lists (Robert Dodier)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 27 Mar 2009 06:29:42 -0500
> From: Barton Willis <willisb at unk.edu>
> Subject: Re: [Maxima] Clozure CL + Windows XP
> To: Reinhard Oldenburg <oldenbur at math.uni-frankfurt.de>
> Cc: maxima at math.utexas.edu
> Message-ID:
> <OF54CA06C2.C91F1034-ON86257586.003F251C-86257586.003F251F at unk.edu>
> Content-Type: text/plain; charset=ISO-8859-1
>
> -----maxima-bounces at math.utexas.edu wrote: -----
>
> >Maxima under CCL is interesting. It is rather fast and has threads.
> >Compiling maxima was done very fast.
>
> Agreeed.
>
> >However,?I?have?a?problem?with?windows?paths:?I?couldn't?run?the
> >testsuite,?because?Maxima?failed?to?find?the?file.?I?couldn't?load?share
> >files?either.?Barton,?did?you?encounter?this?problem?too?
>
> Using the Lisp only build, I was able to run the testsuite (minus
> rtest14, rtest15, and rtest_gamma) and the share testsuite. With the
> GNU Autotools build (./configure, ...), I also had problems with
> paths.
>
> This morning, I was able to save an image using (alternative to step
> 9b in INSTALL.lisp)
>
> (ccl:save-application "unk" :toplevel-function 'cl-user::run)
>
> And I could run Maxima from a command line using
>
> wx86cl -I unk
>
> >I?used?the?released?32bit-version?1.3?of?ccl?under?vista.
>
> I used the 32 bit ccl under XP.
>
> How well does Clozure CL do under OSX? Does it run the testsuite and share
> testsuite OK?
> Is the bug bessel_j(3,2.0) --> 0.0 unique to Clozure using Windows?
>
> I have zero expertise with the GNU Autotools or makefiles; I doubt that I
> could fix these
> problems, but I could try to locate and fix other bugs with Maxima under
> Clozure. Yesterday,
> I sent a note the the Clozure list--maybe it will spark some interest in
> the Clozure
> community.
>
> Barton
>
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 27 Mar 2009 09:42:42 -0400
> From: Kostas Oikonomou <ko at research.att.com>
> Subject: Re: [Maxima] Fun with lists
> To: villate at fe.up.pt
> Cc: Maxima <maxima at math.utexas.edu>
> Message-ID: <49CCD7D2.10408 at research.att.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Jaime,
>
> I find the list_slice() function particularly useful.
> However, I wish that the existing "sublist" function, which
> has a name suggesting the same or similar functionality,
> could be extended to take arguments n, m and then do what
> your list_slice does.
>
> I don't know if others think that's feasible, but I am in
> favor of reducing the number of names/terms as much as possible.
>
> On the same subject, I find having both of the names
> "sublis" and "sublist", with totally different
> functionality, confusing.
>
> Kostas
>
> Jaime Villate wrote:
> > Hi,
> > these are very trivial list functions that can be very handy. Please
> > comment on more appropriate names, better ways to do the same, other
> > similar functions that you would like to see in a package of list
> > utilities, etc.
> >
> > Regards,
> > Jaime
> >
> > (%i1) list_slice(l,n,m):=if (n>0) then rest(rest(l,n+m-1-length(l)),n-1)
> > else rest(rest(l,m+n-1),length(l)+n)$
> >
> > (%i2) list_remove(l,n,m):=if listp(l)
> > then append(rest(l,n-1-length(l)),rest(l,n+m-1))
> > else funmake(op(l),list_remove(args(l),n,m))$
> >
> > (%i3) list_shuffle(l) := block([r], for n:length(l) step -1 thru 2
> > do (r:random(n), l:endcons(part(l,r+1),list_remove(l,r+1,1))), l)$
> >
> > (%i4) list_slice([a,b,c,d,e], 2, 3);
> > (%o4) [b, c, d]
> >
> > (%i5) list_remove([a,b,c,d,e], 2, 3);
> > (%o5) [a, e]
> >
> > (%i6) list_shuffle([a,b,c,d,e]);
> > (%o6) [a, c, d, e, b]
> >
> > (%i9) list_shuffle(a.b.c.d.e);
> > (%o9) c . a . d . e . b
> >
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 27 Mar 2009 10:12:09 -0400
> From: Stavros Macrakis <macrakis at alum.mit.edu>
> Subject: Re: [Maxima] Fun with lists
> To: Kostas Oikonomou <ko at research.att.com>
> Cc: Maxima <maxima at math.utexas.edu>
> Message-ID:
> <8b356f880903270712r21135a69u21c6c56146089536 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I have been using the R system lately for a variety of analyses, and
> it builds a lot of functionality into subscripting.
>
> In particular, subscripting by a list of positive integers selects
> those positions. Subscripting by a list of negative integers selects
> all *except* those positions. Subscripting by a list of booleans
> selects the corresponding positions; if the subscript list is shorter
> than the subscripted list, it is "recycled". Subscripting by the
> missing-data symbol (NA) returns an NA.
>
> In general, Maxima objects can be subscripted by arbitrary objects, so
> x[[2,3]] is a perfectly correct expression, though Maxima assigns no
> meaning to it. On the other hand, Maxima does not allow concrete
> lists (as opposed to variables) to be subscripted by anything but
> integers: [5,6][i] => error; [5,6][[2,3]] => error. So it would be
> possible to allow R-style subscripting semantics for Maxima, e.g.
>
> [a,b,c][[1,3]] => [a,c]
> [a,b,c][[-1,-2]] => [c]
> [a,b,c][[TRUE, FALSE, TRUE]] => [a,c]
>
> This could also be extended to matrices or lists-of-lists, e.g.
>
> m : matrix([a,b,c],[d,e,f],[g,h,i])
> m[[1,3],[2,1]] => matrix([b,a],[h,g])
>
> In R syntax, a missing subscript indicates all values, e.g. m[1,]; we
> would need some different convention for that, e.g. m[1,ALL]:
>
> m[ALL,[2,1]] == m[[1,2,3],[2,1]] => matrix( [b,a], [e,d], [h,g] )
>
> R allows these operators on the left-hand side of assignments.
>
> Other important features:
>
> * R also supports multidimensional arrays as objects (as opposed to
> Maxima's hasharrays and other non-object arrays), which would be nice
> to have. I suppose this could be done using lists-of-lists-of-lists
> in the natural extension of the current Matrix system, or in a number
> of other ways.
> * R supports labelling both rows and columns, and selection of rows
> and columns by name.
>
> Well, enough for now. Discussion?
>
> -s
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 27 Mar 2009 15:15:02 +0100 (CET)
> From: "Wilhelm Haager" <wilhelm.haager at htlstp.ac.at>
> Subject: Re: [Maxima] Fun with lists
> To: villate at fe.up.pt
> Cc: Maxima <maxima at math.utexas.edu>
> Message-ID:
> <61103.85.255.150.204.1238163302.squirrel at mail.htlstp.ac.at>
> Content-Type: text/plain;charset=iso-8859-1
>
> >Hi Jaime!
>
> > (%i3) list_shuffle(l) := block([r], for n:length(l) step -1 thru 2
> > do (r:random(n), l:endcons(part(l,r+1),list_remove(l,r+1,1))), l)$
>
> I think, for lists, random_permutation does just the desired thing:
>
> random_permutation([a,b,c,d,e,f,g]);
>
> For any Operator, here a alternative solution in functional style:
> (very short)
>
> list_shuffle(f):=apply(op(f),random_permutation(args(f)));
>
> Regards,
> Wilhelm Haager
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 27 Mar 2009 15:32:45 +0100
> From: reyssat <eric.reyssat at math.unicaen.fr>
> Subject: Re: [Maxima] Fun with lists
> To: villate at fe.up.pt
> Cc: Maxima <maxima at math.utexas.edu>
> Message-ID: <49CCE38D.30808 at math.unicaen.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I think of two functions that may already exist :
>
> cyclically permute the elements of a list
> cycle([a,b,c,d,e,f,g],2) --> [c,d,e,f,g,a,b]
>
>
> kind of discrete integration :
> transforming [a1,a2,a3,...,an] into [a1,a1+a2,a1+a2+a3, ... ,a1+a2+...+an]
> (may be with other operators than +)
>
> Eric Reyssat
>
> Jaime Villate a ?crit :
> > Hi,
> > these are very trivial list functions that can be very handy. Please
> > comment on more appropriate names, better ways to do the same, other
> > similar functions that you would like to see in a package of list
> > utilities, etc.
> >
> > Regards,
> > Jaime
> >
> > (%i1) list_slice(l,n,m):=if (n>0) then rest(rest(l,n+m-1-length(l)),n-1)
> > else rest(rest(l,m+n-1),length(l)+n)$
> >
> > (%i2) list_remove(l,n,m):=if listp(l)
> > then append(rest(l,n-1-length(l)),rest(l,n+m-1))
> > else funmake(op(l),list_remove(args(l),n,m))$
> >
> > (%i3) list_shuffle(l) := block([r], for n:length(l) step -1 thru 2
> > do (r:random(n), l:endcons(part(l,r+1),list_remove(l,r+1,1))), l)$
> >
> > (%i4) list_slice([a,b,c,d,e], 2, 3);
> > (%o4) [b, c, d]
> >
> > (%i5) list_remove([a,b,c,d,e], 2, 3);
> > (%o5) [a, e]
> >
> > (%i6) list_shuffle([a,b,c,d,e]);
> > (%o6) [a, c, d, e, b]
> >
> > (%i9) list_shuffle(a.b.c.d.e);
> > (%o9) c . a . d . e . b
> >
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
> >
> >
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 27 Mar 2009 10:44:22 -0600
> From: Robert Dodier <robert.dodier at gmail.com>
> Subject: Re: [Maxima] Fun with lists
> To: Stavros Macrakis <macrakis at alum.mit.edu>
> Cc: Maxima <maxima at math.utexas.edu>
> Message-ID:
> <eb9c4b9a0903270944n7540cd91s88b602555ae82fb9 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Fri, Mar 27, 2009 at 8:12 AM, Stavros Macrakis <macrakis at alum.mit.edu>
> wrote:
>
> > I have been using the R system lately for a variety of analyses, and
> > it builds a lot of functionality into subscripting.
>
> I wrote a matrix reimplementation (amatrix) which has a lot
> of R-like constructs for indexing. More about that tomorrow.
>
> R is really terrific. On a tangential note, Ross Ihaka (one of the
> two original "R" developers) recently wrote a paper about using
> Lisp for statistical computing. When I heard that I thought it
> would be about combining symbolic and numerical processing
> (my own pet project) but instead it was about getting scripts to
> run faster (if I understand correctly).
>
> best
>
> Robert
>
>
> ------------------------------
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
> End of Maxima Digest, Vol 32, Issue 53
> **************************************
>
--
http://www.watch-movies-online-hollywoodkiller.com