L=: %:@:(+/)@:*:"1 |
Length of vector (See rank in the dictionary
or in Section 20 of the Introduction) |
LR=:L"1 |
Length of rows in table |
disp=: ] - 1&|. |
Displacement between rows |
LS=: LR@disp |
Lengths of sides of figure |
sp=: -:@(+/)@LS |
Semiperimeter (try sp tri) |
H=: %:@(*/)@(sp,sp-LS) |
Heron's formula for area |
det=: -/ . * |
Determinant (See dictionary) |
SA=: det@(,.&0.5) |
Signed area. Try SA@|. |
sa=:det@(],.%@!@<:@#) |
General signed volume; try on the tetrahedron |
tet=:?4 3$9 |
as well as on the triangle tri . |