Here's notation somewhat closer to math form: mod=: 2 : 'u & (n & |)' 13 = (mod 10) 23 1
--- On Sat, 5/24/08, Raul Miller <[EMAIL PROTECTED]> wrote: > On 5/24/08, Tracy Harms <[EMAIL PROTECTED]> wrote: > > 38 ≡ 14 (mod 12) > > Personally, I would express this in J as > 38 =&(12&|) 14 > > > If I may be allowed a non-J question, I'm looking > for help determining what > > the left parameter must satisfy in order for verb meq > to return true. > > If I may be allowed to answer this question using J, I > would use: > em=: (1 + 1 }. i.@<./) (=/"1@:(|/) # [) ] > em 38 14 > 2 3 4 6 8 12 > > 38 is equivalent to 14 using any of the listed modulii. > > -- > 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
