def triangle_area(a,b,c):
(a,b,c) = [np.asarray(x) for x in (a,b,c)]<EOL>sides = np.sqrt(np.sum([(p1 - p2)**<NUM_LIT:2> for (p1,p2) in zip([b,c,a],[c,a,b])], axis=<NUM_LIT:1>))<EOL>s = <NUM_LIT:0.5> * np.sum(sides, axis=<NUM_LIT:0>)<EOL>s = np.clip(s * np.prod(s - sides, axis=<NUM_LIT:0>), <NUM_LIT:0.0>, None)<EOL>return np.sqrt(s)<EOL>
triangle_area(a, b, c) yields the area of the triangle whose vertices are given by the points a,
b, and c.