a .. b



-----maxima-bounces at math.utexas.edu wrote: -----

>Does nary("..") do the right thing here?

Ahh--yes. Thanks, I didn't think of nary. Demo of new code:

(%i46) 1 .. (2) .. 6;
(%o46) [1,3,5]

(%i47) 6 .. (-1) .. 1;
(%o47) [6,5,4,3,2,1]

(%i48) 0 .. 0.1 .. 0.2;
(%o48) [0.0,0.1,0.2]

(%i49) a .. b .. c;
(%o49) a .. b .. c

(%i50) subst([a=1,b=1,c = 2],%);
(%o50) [1,2]

(%i51) 0 .. (1/2) .. 3;
(%o51) [0,1/2,1,3/2,2,5/2,3]

(a) Using wxMaxima, the dot-dot operator displays as prefix operator, but
it's OK with Xmaxima.

(b) The parens in  6 .. (-1) .. 1 and 0 .. (1/2) .. 3 are needed---maybe
    the binding powers are wrong.
    Also, the spaces on either side of dot-dot are required, I think.

Barton