On Thursday, September 12, 2013 8:10:22 AM UTC-7, Dan Christensen wrote:
> What "context" is a computer programmer to use when writing software for, say, medical equipment? Should he/she just assume 0^0=1? Shockingly, most programming languages seem to automatically make this assumption! > > There is a good case to be made that 0^0 is ambiguous even in the natural numbers. Therefore, it seems to me that the safest, most conservative assumption when programming is that 0^0 should be flagged as an error condition. This should be a global standard built into every general purpose programming language.
Could you please post a simple program where using 0^0 = 1 would give an undesirable result?