Problem 769. Calculate the area of a triangle between three points
Calculate the area of a triangle between three points:
P1(X1,Y1)
P2(X2,Y2)
P3(X3,Y3)
these three points are the vertices of the triangle.
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Peter Wittenberg
on 13 Jan 2013
The test suite checks for equality, but different techniques have small numerical differences. The test suite should allow for these differences, as it eliminates many solutions that are correct.
goc3
on 24 Jan 2017
This problem has been updated to check against a small error value rather than for equality.
Andrew Ramsay
on 3 Dec 2019
Good problem
Vishal
on 12 Oct 2020
Hi Team,
I am getting error after submitting as,
"We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly"
But completion bar has been incremented.
Thanks and Have a Good DaY
BunnY
on 25 Oct 2020
Would the use of polyarea(x,y) work?
I tried but I'm getting an issue to submit!
mahesh kumar
on 31 Oct 2020
for bringing back memories- THANK YOU!
Solution Comments
Show comments
Problem Recent Solvers2658
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!