Post Reply 
bc (basic calculator) and libraries of functions
08-27-2018, 02:28 PM
Post: #15
RE: bc (basic calculator) and libraries of functions
more surprises with bc: https://www.johndcook.com/blog/2010/07/1...h-library/

Not only is the exponent must be integer, unary minus had precedence above ^

- 3 ^ 2 => 9
- - - - 3 ^ 2 => 9

On some old bc version x=-y and x= -y had different meanings ... weird

see page 6 of http://www.unixprogram.com/bc.pdf
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: bc (basic calculator) and libraries of functions - Albert Chan - 08-27-2018 02:28 PM



User(s) browsing this thread: 1 Guest(s)