Problem 769. Calculate the area of a triangle between three points
Solution Stats
Problem Comments
-
6 Comments
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.
This problem has been updated to check against a small error value rather than for equality.
Good problem
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
Would the use of polyarea(x,y) work?
I tried but I'm getting an issue to submit!
for bringing back memories- THANK YOU!
Solution Comments
-
1 Comment
tricky
-
1 Comment
nice
-
2 Comments
I think you need to fix your testing algorithm. I have the right answer but it keeps saying error.
@Michael, The testing algorithm is correct. Kindly look into why your code is producing the incorrect result.
-
1 Comment
This was a neat problem to practice triangular based calculations.
-
1 Comment
Nice solve man!!!
I am impressed!!
-
1 Comment
d1=sqrt((X(2)-X(1))^2+(Y(2)-Y(1))^2); %distancia de A hasta B
d2=sqrt((X(3)-X(1))^2+(Y(3)-Y(1))^2); %distancia de A hasta C
d3=sqrt((X(3)-X(2))^2+(Y(3)-Y(2))^2); %distancia de B hasta C
s=(d1+d2+d3)/2; %Semiperimetro
y=sqrt(s*(s-d1)*(s-d2)*(s-d3)) %Fórmula de Herón
-
1 Comment
......
Problem Recent Solvers2219
Suggested Problems
-
Read a column of numbers and interpolate missing data
1896 Solvers
-
Multiples of a Number in a Given Range
497 Solvers
-
Circular Primes (based on Project Euler, problem 35)
297 Solvers
-
Matlab Basics - Absolute Value
528 Solvers
-
351 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!