Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = sqrt(3)/4;
tolerance = 1e-12;
assert(abs(equilateral_area(x)-y_correct)<tolerance)
ans =
0.4330
|
2 | Pass |
%%
x = 2;
y_correct = sqrt(3);
tolerance = 1e-12;
assert(abs(equilateral_area(x)-y_correct)<tolerance)
ans =
1.7321
|
3 | Pass |
%%
x = 3;
y_correct = sqrt(3)*9/4;
tolerance =1e-12;
assert(abs(equilateral_area(x)-y_correct)<tolerance)
ans =
3.8971
|
10762 Solvers
How to find the position of an element in a vector without using the find function
2322 Solvers
3654 Solvers
Find the largest value in the 3D matrix
899 Solvers
Side of an equilateral triangle
1521 Solvers