hi guys,
i was pondering the benefits pros and cons of a left to right
notation. common calculators go left to right - 1 + 2 * 3 is 9. is
the fact that common calculators operate this way due to "common
sense" or an innate intuitiveness?
so ordinary J:
q=. 2 3 5 7 9
1 + 2 * q
5 7 11 15 19
then a left to right J could be:
2 3 5 7 9 =. q
q * 2 + 1
5 7 11 15 19
=. q may be the most offputting here, but this is just how a common
calculator works -- the "M+" key.
ta, jack
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm