Re: Division by zero



Hi Christopher,

Indeed, defining x^0 = 1 for any x makes most sense. The pow() function
from standard C even returns 1 when x is NaN. This definition can also
be used with Q, so 0^0 is equal to Q^0. Quite elegant.

Thanks,

Nicolas


Proginoskes wrote:
Nicolas.Capens@xxxxxxxxx wrote:
Hi all,

I have a theory to work with division by zero, and it might have some
use in computer science.

I got inspired by Dr. Anderson's 'nullity' number:
http://www.bookofparagon.com/News/News_00012.htm. But as far as I know
it doesn't solve any real problem. At the best he proves that by
allowing a nullity number off the real number line, 0^0 = 0 / 0,
[...]
Any thoughts about this?

0^0 is defined to be 1, at least everywhere I've seen it. This is
mainly so that polynomial and power series manipulations give the
answers that you would expect them to.

Of course, 0^0 is an indeterminate form, but in that case you're
looking at functions which are approaching 0 (and not a "static" 0).

--- Christopher Heckman

.



Relevant Pages

  • Re: Integer Coersion
    ... defining type kinds, I would certainly like the option of defining by ... Most of the 64 bit Cray machines are in museums by now. ... Still, as long as the standard allows for other word sizes, bases, ...
    (comp.lang.fortran)
  • Re: Draft standards OK for new compiler and libc?
    ... > Sort of true and sort of false. ... > not to usurp the standard's role in defining the C language. ... > need to develop the official standard. ...
    (comp.std.c)
  • Re: Freeing memory - will it be available immediately
    ... properly free'd is made available for "further allocation". ... The C standard defines the expected behaviour of a C program. ... The C standard defines free as releasing the memory to be made available ... exactly what the standard is defining the behaviour of, ...
    (comp.lang.c)
  • Re: What does ((time_t)-1) mean?
    ... standard, as long as you don't use anything related to the way ... If, for example, defining your own printf() function invokes UB, ...
    (comp.lang.c)
  • Re: Freeing memory - will it be available immediately
    ... properly free'd is made available for "further allocation". ... The C standard defines the expected behaviour of a C program. ... The C standard defines free as releasing the memory to be made available ... exactly what the standard is defining the behaviour of, ...
    (comp.lang.c)