发布网友 发布时间:2024-10-24 06:27
共1个回答
热心网友 时间:2024-11-09 20:40
向量AB=(X1,Y1),AC=(X2,Y2)
向量AB*AC=(X1,Y1)*(X2,Y2)
=x2x2+y1y2
设向量AB与向量AC的夹角为a
cosa=(AB*AC)/(|AB||AC|)
sina=√[1-(AB*AC)^2/(|AB||AC|)^2]
所以三角形ABC的面积S=1/2*|AB||AC|sina
=1/2*√[(|AB||AC|)^2]-(AB*AC)^2]
又[(|AB||AC|)^2=(x1x2)^2+(x1y2)^2+(x2y1)^2+(y1y2)^2
所以S=1/2*√[(x1x2)^2+(x1y2)^2+(x2y1)^2+(y1y2)^2-(x1x2)^2-(y1y2)^2-2x1x2y1y2]
=1/2*√(x1y2-x2y1)^2
=1/2|x1y2-x2y1|