adreieck - area of triangles
PLIST is a matrix with 3 rows. Each column contains the corners of a triangle. A is a vector, which contains the areas of the triangles.
The function is quite easy. The main lines are: v1=plist(2,:) - plist(1,:); v2=plist(3,:) - plist(1,:); A=abs(0.5 .*imag(v1 .*conj(v2)));
// Two triangles pl=[0,1,(1+%i);0,3*%i,(4+3*%i)].' A=adreieck(pl) // Result should be ! 0.5 6 !