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?
1 | initial version |
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?
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?