Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Any way to detect division by zero?

In Sage, is there any way (function call) to check whether a given expression will produce division by zero error. Is something like the following possible?

if IsDivisionByZero(expr): return False

Any way to detect division by zero?

In Sage, is there any way (function call) to check whether a given expression will produce division by zero error. Is something like the following possible?

if IsDivisionByZero(expr): return False