Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Defining a protected division operator

Is it possible to define a protected division operator, that turns division by zero into the constant 1 ? I want to be able to do this when simplifying an expression in Sage. What would be the best approach to it?

Defining a protected division operator

Is it possible to define a protected division operator, operator in SageMath that turns division by zero into the constant 1 ? I want to be able to do this when simplifying an expression in Sage. What would be the best approach to it? it?