I don't know what the result for 37j37 means? f=: 13 :'y-x*<. y % x+0=x' 8 f 37 0j37 37j37 5 0j5 _3j5
Linda -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, December 29, 2011 9:09 AM To: 'Programming forum' Subject: Re: [Jprogramming] inconsistent result from | ]one=: {. 1 0.j1 1 f=: 13 :'y-x*<. y % x+0=x' 2 | one _1 2 | 1 1 2 f 1 1 2 f {. 1 0.j1 1 You need to use the extended definition. 2 f 1 0.j1 1 0j1 What is the meaning of residue of a complex number? Linda -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller Sent: Thursday, December 29, 2011 7:33 AM To: Programming forum Subject: Re: [Jprogramming] inconsistent result from | And then the next line says: The definition y-x*<. y % x+0=x extends the residue to a zero left argument, and to negative and fractional finite arguments. For example: That said, I believe I provided a case where it is inconsistent with positive arguments. That said, it was in my follow-up message. I will re-state it, here, for clarity: one=: {. 1 0.j1 one 1 2 | 1 1 2 | one _1 Note also that this result is inconsistent with the expression from the dictionary which appeared in the sentence that I quoted above: Y=: one X=: 2 Y-X*<. Y % X+0=X 1 -- Raul On Wed, Dec 28, 2011 at 7:06 PM, Linda Alvord <lindaalv...@verizon.net> wrote: > The definition of residue in the Vocabulary doesn't promise to deal with > negative or imaginary numbers: > > "The familiar use of residue is in determining the remainder on dividing a > non-negative integer by a positive: > > Linda > > -----Original Message----- > From: programming-boun...@jsoftware.com > [mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller > Sent: Wednesday, December 28, 2011 4:10 PM > To: Programming forum > Subject: [Jprogramming] inconsistent result from | > > {. 2 | _1 > 1 > {. 2 | _1 1j1 > _1 > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm