divide-by-zeromatrix-inverseapldyalogsystem-setting

Why does ⎕DIV not affect Matrix divide (⌹)?


With ⎕DIV←1, dividing by 0 does not give an error but gives a 0 every time.

When dividing by 0, (quad divide) seems to always throw a domain error even with ⎕DIV←1.

Is there a reason why the value of ⎕DIV does not affect ?


Solution

  • ⎕DIV solves a very practical/pragmatic problem that occurs in applications, where there are 0 values scattered around in data because you have missing values, and you don't want to write code to remove them and then put them back in after division. This doesn't make sense for matrix inversion.