shyam protect three points (1,1),(-2,7),(3,-3) wheather they are in one line or not how can you help him
Answers
Answered by
5
If they are in a straight line the area enclosed will be equal to zero.
=1/2 (x1(y2-y3) +x2(y3-y1) +x3(y1-y2))
=(1 (7+3) -2 (-3-1) +3 (1-7))
=(1 (10) -2 (-4) +3(-6))
=10+8-18
=0
since area is zero we can say that three points protected by shyam are in a line .
=1/2 (x1(y2-y3) +x2(y3-y1) +x3(y1-y2))
=(1 (7+3) -2 (-3-1) +3 (1-7))
=(1 (10) -2 (-4) +3(-6))
=10+8-18
=0
since area is zero we can say that three points protected by shyam are in a line .
Similar questions