Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gitpyr.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!gitpyr!roy From: roy@gitpyr.UUCP (Roy J. Mongiovi) Newsgroups: net.puzzle Subject: Re: x to the x to the x ... (ANSWER/SPOILER) Message-ID: <379@gitpyr.UUCP> Date: Thu, 9-May-85 10:01:32 EDT Article-I.D.: gitpyr.379 Posted: Thu May 9 10:01:32 1985 Date-Received: Fri, 10-May-85 03:08:37 EDT References: <7219@watdaisy.UUCP> <3681@alice.UUCP> <481@tekchips.UUCP> Organization: Georgia Institute of Technology, Atlanta, GA Lines: 15 > While it may be true that > most programming languages that use '^' for exponentiation define it to be > right-associative, I do not find either interpretation to be unreasonable. The reason that right associativity is preferred is that: (x ^ y) ^ z is equivalent to x ^ (y * z) and the multiplication is certainly more efficient. Therefore the only sensible way to associate exponentiation is to the right. If a language does it the other way, then it's less than useless. -- Roy J. Mongiovi. Office of Computing Services. User Services. Georgia Institute of Technology. Atlanta GA 30332. (404) 894-6163 ...!{akgua, allegra, amd, hplabs, ihnp4, masscomp, ut-ngp}!gatech!gitpyr!roy