Hardly worth commenting as it's a matter of convention, but I did this check with my Silverfrost/Plato Fortran 95, albeit in Fortran as I wrote it mid-20th C:
Program: " print *, 8 / 2 * (2 + 2) end " Output: " 16 Press RETURN to close window... " Also, 8 / 2 * 2 + 2 is of course 10 as far as my Fortran is concerned. How different from J and APL ... and K (mine needs updating though!): "K 2.8t 2000-08-23 Copyright (C) 1993-2000 Kx Systems Evaluation. Not for commercial use. \ for help. \\ to exit. 8 % 2 * (2 + 2) 1.0 8 % 2 * 2 + 2 1.0 " Only chatting/cheating! Mike On 26/09/2019 06:07, Bernie Eckhart wrote:
as a non-mathemation, seems obvious to me, reading left to right, we have thing divided by an expression expanding the expression give 8; except for zero divided by zero, value divided by same value is AFAIK always ONE, if this were a sentence, 8 is the subject divided by is the verb, and 2(2+2) is the object. On Sep 25, 2019 04:28, "R.E. Boss" <[email protected]> wrote: From https://www.quantamagazine.org/the-math-behind-a-faster-multiplication-algorithm-20190923/ “This summer, battle lines< https://twitter.com/pjmdolI/status/1155598050959745026?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1155598050959745026&ref_url=https%3A%2F%2Fwww.nytimes.com%2F2019%2F08%2F02%2Fscience%2Fmath-equation-pedmas-bemdas-bedmas.html> were drawn over a simple math problem: 8 ÷ 2(2 + 2) = ? If you divide 8 by 2 first, you get 16, but if you multiply 2 by (2 + 2) first, you get 1. So, which answer is right? The conflict grew so heated that it made the pages of The New York Times< https://www.nytimes.com/2019/08/02/science/math-equation-pedmas-bemdas-bedmas.html>. And as the comments section shows, even a professional mathematician weighing in on the matter wasn’t enough to bring the two sides together.” R.E. Boss ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
