Arithmetic/Integer: Difference between revisions

J: simplify
(adding Yorick)
(J: simplify)
Line 653:
=={{header|J}}==
<lang j>calc =: + , - , * , <.@% , |~ , ^
labels =: >];.2 'Sum: Difference: Product: Quotient: Remainder: Exponentiation: '
combine =: [ ,. ":@|:@,:@].
bia =: labels combine calc</lang>
Note that the verb <tt>calc</tt> produces all the processing specified for this problem, and that its output is of numeric type.
6,962

edits