Order of operations - what is 6÷2(1+2) ?
|
12-22-2020, 08:03 PM
(This post was last modified: 12-22-2020 08:05 PM by robve.)
Post: #64
|
|||
|
|||
RE: Order of operations - what is 6÷2(1+2) ?
(12-22-2020 03:41 PM)toml_12953 Wrote:(12-22-2020 12:56 PM)Dave Britten Wrote: Let's make a deal here: if people get to claim that 6/2(1+2)=1 then I get to say that -2^2=4. Not so for Python: >>> -2**2 -4 Yes for Prolog: ?- X is -2^2. X = 4. Yes for Unix bc: bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. -2^2 4 Not so for Basic (all Sharp PC and Visual Basic): -2^2 -4 Yes for Fortran. Not so for Casio fx-115ES+. The jury is still out on this one... "I count on old friends to remain rational" |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)