From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division Date: Sun, 07 Sep 2008 23:19:56 +0200 Message-ID: <48C4457C.4020506@gmail.com> References: <878wu3j4k2.fsf@gmail.com> <873akbitie.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220822424 484 80.91.229.12 (7 Sep 2008 21:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Sep 2008 21:20:24 +0000 (UTC) Cc: jay.p.belanger@gmail.com, bug-gnu-emacs@gnu.org, Francis Litterio , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 07 23:21:18 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcRh7-0006py-FZ for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 23:21:17 +0200 Original-Received: from localhost ([127.0.0.1]:50553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcRg7-0007uS-MF for ged-emacs-devel@m.gmane.org; Sun, 07 Sep 2008 17:20:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcRg3-0007uN-AD for emacs-devel@gnu.org; Sun, 07 Sep 2008 17:20:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcRg2-0007u9-Sw for emacs-devel@gnu.org; Sun, 07 Sep 2008 17:20:10 -0400 Original-Received: from [199.232.76.173] (port=41893 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcRg1-0007tp-3U; Sun, 07 Sep 2008 17:20:09 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:45617) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcRg0-0000Qq-KX; Sun, 07 Sep 2008 17:20:08 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64805 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KcRfu-00062O-7I; Sun, 07 Sep 2008 23:20:05 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080907-0, 2008-09-07), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-ACL-Warn: Too high rate of unknown addresses received from you X-Scan-Result: No virus found in message 1KcRfu-00062O-7I. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KcRfu-00062O-7I cb4d3f458180c06436c16a40e5242412 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103656 gmane.emacs.bugs:20326 Archived-At: Stefan Monnier wrote: >> According to Wikipedia: >> An expression like 1/2x is interpreted as 1/(2x) by TI-82, but as >> (1/2)x by TI-83. While the first interpretation may be expected by >> some users, only the latter is in agreement with the standard rules >> stated above. > > That could be due to a higher precedence, but could also be due to an > equal precedence together with left-associativity. Given that (a*b)/c > is often mathematically equal to a*(b/c), the difference is generally > hard to see, unless rounding comes into play. But that is a bit different from (a/b)*c, a/(b*c) ... - otherwise I agree.