Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x1 = 1;y1=1;x2=0;y2=0;x3=2;y3=0;
y_correct = 1;
assert(isequal(triarea(x1,y1,x2,y2,x3,y3),y_correct))
a =
1.4142
b =
2
c =
0
s =
1.7071
A =
0.0000 + 0.5000i
|
2 | Fail |
x1 = 2;y1=1;x2=5;y2=1;x3=4;y3=3;
y_correct = 3;
assert(isequal(triarea(x1,y1,x2,y2,x3,y3),y_correct))
a =
3
b =
0.0000 + 2.6458i
c =
2.4495
s =
2.7247 + 1.3229i
A =
0.0000 - 4.0927i
|
3 | Fail |
x1 = 4;y1=0;x2=7;y2=2;x3=2;y3=3;
y_correct = 6.5;
assert(isequal(triarea(x1,y1,x2,y2,x3,y3),y_correct))
a =
2.2361
b =
4.2426
c =
2.6458
s =
4.5622
A =
2.5495
|
Return a list sorted by number of occurrences
1504 Solvers
Check if number exists in vector
4470 Solvers
302 Solvers
Append two matrix as shown below example
182 Solvers
Determine the Anti-diagonal of a Magic Square
84 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!