[Jprogramming] Complex residue

Louis de Forcrand olius at bluewin.ch
Thu Jun 22 20:53:01 UTC 2017


Hi,

There's been recent discussion on the GNU APL forums about how to define the residue function on complex arguments. I wondered how it was specified in J, but the dictionnary page seems kind of vague.

Nuvoc says that 
(x|y)=y-x*<.y%x+0=x
for all scalars x and y (including complex numbers).
However, this is untrue for
'x y'=: 1j1 3j4
(tested on the old J for iOS)

While it would seem like a logical extension, the dictionnary only says that this is true for rational numbers.

So how is the residue of two complex numbers defined in J?

Thanks,
Louis


More information about the Programming mailing list