On Oct 29, 6:02 pm, Eviatar <eviatarb...@gmail.com> wrote: > I am aware of this; however, the log of 0 is not defined, b^n=0, unless the > base is also 0. As a limit, it can be evaluated to -Infinity. However, Sage > typically does not use the limit of an undefined expression, as can be seen > by 1/0 returning an error.
Well, there is some inconsistency, probably. But in general we *do* use such things, because our component programs (Maxima, for instance) do; division by zero is probably one of the few exceptions. There are probably others. For example, people often complain about sage: 0^0 1 But apparently this is fairly widespread in the math software world. I understand that IEEE allows several different answers to questions like these; for instance, NaN (not a number) shows up a lot. I would say that your earlier example of 1/0 is a better example of inconsistency. Also compare sage: 1./0 +infinity sage: CC(1)/0 NaN - NaN*I And why -, not +, NaN*I? Since sage: CC(-1)/0 NaN - NaN*I sage: CC(0)/CC(0) NaN - NaN*I Anyone who knows more about this is welcome to say more/correct, though! - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org