Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When is 0^0 NaN in Sage?

sage: 1 == 0^0 == 0**0 == pow(0,0)
True

sage: power_mod(0,0,2)
Traceback (click to the left of this block for traceback)
...
ArithmeticError: 0^0 is undefined.



http://en.wikipedia.org/wiki/Exponentiation#IEEE_floating_point_standard

click to hide/show revision 2
retagged

When is 0^0 NaN in Sage?

sage: 1 == 0^0 == 0**0 == pow(0,0)
True

sage: power_mod(0,0,2)
Traceback (click to the left of this block for traceback)
...
ArithmeticError: 0^0 is undefined.



http://en.wikipedia.org/wiki/Exponentiation#IEEE_floating_point_standard