APLX Help : Help on APL language : APL Primitives : × Multiply




Twoargument form See also oneargument form Sign of Multiplies the number(s) in the righthand argument by the number(s) in the left hand argument. 23.8×0.12 (Multiplies one number by another) 2.856 12 8 39×9 81 2 (Multiplies each number in a vector by 108 648 78 the corresponding number in a vector of equal size) 12×89 91 ¯2 87 (Multiplies a scalar by each number in 1068 1092 ¯24 1044 a vector) TABLE ← 3 5 ⍴ ⍳ 15 TABLE × 5 (Multiplies each number in a matrix 5 10 15 20 25 by a scalar) 30 35 40 45 50 55 60 65 70 75 TABLE×TABLE (Multiplies each number in a matrix 1 4 9 16 25 by the corresponding number in a matrix 36 49 64 81 100 of equal size and dimensions) 121 144 169 196 225 2 × 5 (2 2 ⍴⍳4) (⍳5) (Multiplies every element in the right 10 2 4 2 4 6 8 10 argument by 2) 6 8 2 3 × 5 (2 2 ⍴⍳4) (⍳5) LENGTH ERROR (Arguments must be the same length) 2 3×5(2 2⍴⍳4)(⍳5) ^ (2 2⍴⍳4) 10 (3⍴3)×5 (2 2 ⍴⍳4) (⍳3) 5 10 10 20 3 6 9 (Corresponding elements multiplied) 15 20 30 40 

APLX Help : Help on APL language : APL Primitives : × Multiply

Copyright © 19962010 MicroAPL Ltd