On Wed, 23 Feb 2022, Hauke Rehr wrote:
what are complex numbers used for in J? not only as actual complex numbers but oftentimes as a cheap and easy way of dealing with pairs
Good point! I did that recently, actually; but I consider it a horrid hack. It should not be very hard to use pairs as pairs, anyway.
Also: comparing complex numbers which are used as pairs does not work in all cases anyway. See my earlier example of 3j1e100=5j1e100. If you can keep 1e100 out of your domain, you can keep _ out of your domain. And if you can't, then you have to use =!.0 anyway, which should do the right thing on infinite complex numbers.
-E ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm