Increasing the rbp value of the "+" operator



Am Montag, den 15.02.2010, 15:53 -0800 schrieb Richard Fateman:
> ++-3;  is valid input now.  would your suggestion change it?

No, there is no change.

We increase the right binding power:

(%i3) :lisp (defprop $+ 134 rbp)
134

This is your example:

(%i3) ++-3;
(%o3) -3

Some more example of this type:

(%i4) -++3;
(%o4) -3

(%i5) +++3;
(%o5) 3

(%i6) ---3;
(%o6) -3

(%i7) --3;
(%o7) 3

And

(%i8) 1/+3*x;
(%o8) x/3

(%i9) 1/+-3*x;
(%o9) -x/3

(%i10) 1/-+-3*x;
(%o10) x/3

(%i11) 1/-+--3*x;
(%o11) -x/3

Dieter Kaiser