*: y (Square)

The Square of numeric noun: y.

   *: 7
49

This following is an animation for the Square monadic verb that might be useful to those new to J

Embedded application/x-shockwave-flash

Common uses

Can lead to neater tacit expressions

    pythag=: +&.*:   NB. instead of: ((x^2) + (y^2))^0.5
    3 pythag 4
5

See Also


x *: y (Not-And)

The logical operation Not-And between two Boolean nouns x and y.

   0 0 1 1 *: 0 1 0 1
1 1 1 0
   (0 1) *:/ (0 1)      NB. Truth-table of: *:
1 1
1 0
   (0 1) *:table (0 1)  NB. Truth-table with borders
┌──┬───┐
│*:│0 1│
├──┼───┤
│0 │1 1│
│1 │1 0│
└──┴───┘

Note: Restricted to boolean arguments:

   1 *: 2
|domain error
|   1    *:2

The following is an animation for the Not And (boolean) that might be useful to those new to J

Embedded application/x-shockwave-flash

Common uses

See Also


CategoryVoc

Vocabulary/starco (last edited 2011-06-17 02:03:46 by IanClark)