|
I suppose you could define division by zero to give some value, and have basically the same result, but it would not be the inverse of multiplication in that particular instance.
define newdiv(a,b){
if (b==0){
return somespecialsymbol;
}elseif(b isa complexNumber){
return olddiv(a,b);
}else{
throw outOfDomainError;
}
}
yeah.
don't know why I just typed that out.
this apparently doesn't allow for spaces for indentation...
yep.
|