a .. b



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

On Fri, Jun 20, 2008 at 3:43 PM, Barton Willis <willisb at unk.edu> wrote:
> -----"Richard Fateman" <fateman at cs.berkeley.edu> wrote: -----
>
>>The parser should produce ((matseq) 3 ((matseq) 1/2 4))  which should
> first
>>be simplified to  something like ((matseq) 3 1/2 4)
>
> Thanks, I didn't think about that---we can do this without altering the
> parser:
>
> (%i1) infix("..", 50, 50);
> (%o1) ..
>
> (%i2) a..(1/2)..c;
> (%o2) a .. 1/2 .. c
> (%i3) ?print(%);
> (($.. SIMP) (($.. SIMP) $A ((RAT SIMP) 1 2)) $C)
>
> The binding power of dot-dot needs to be changed:
>
> (%o3) a .. 1/2 .. c
> (%i4) a..1/2..c;
> (%o4) a .. 1/(2*c)
>
> Barton
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>