JPhrases/EPluribusUnum

From J Wiki
Jump to: navigation, search

10B. E Pluribus Unum

m0=: >./ List maximum or column maxima
d1=: >./ .* Maximum of x weighted by y
d2=: <./ .* Minimum of x weighted by y
d3=: +/ .= , How many x in y?
m4=: +/"1 Sum rows of y
m5=: >./-<./ 1 less than range of y
m6=: [: >./ 0: , ] Maximum of y, but at least 0
m7=: <./ List minimum or column minima