Cody

# Problem 769. Calculate the area of a triangle between three points

Solution 2119228

Submitted on 5 Feb 2020 by ME
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
X=[1 0 0]; Y=[0 0 1]; y_correct = 0.5; assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)

2   Pass
X=[1 1.5 2]; Y=[0 1 0]; y_correct = 0.5; assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)

3   Pass
X=[2 3 1]; Y=[0 3 4]; y_correct = 3.500; assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)

4   Pass
X=[10 12 -10]; Y=[-7 -3 -47]; y_correct = 0; assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)

[Warning: Output contains an empty polyshape due to duplicate vertices, intersections, or other inconsistencies.] [> In polyshape/checkAndSimplify (line 469) In polyshape (line 175) In your_fcn_name (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)] [Warning: Polyshape has duplicate vertices, intersections, or other inconsistencies that may produce inaccurate or unexpected results. Input data has been modified to create a well-defined polyshape.] [> In polyshape/checkAndSimplify (line 480) In polyshape (line 175) In your_fcn_name (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]