Cody

# Problem 43601. Find the sines of an isosceles triangle when given its area and height

Solution 3248958

Submitted on 17 Oct 2020
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   Fail
A = 12; h = 4; y_correct = [0.8, 0.8, 0.96]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test1 (line 4) y = theSineOfAnglesOfATriangle(A,h);

2   Fail
A = 48; h = 8; y_correct = [0.8, 0.8, 0.96]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test2 (line 4) y = theSineOfAnglesOfATriangle(A,h);

3   Fail
A = 40; h = 10; y_correct = [0.9285, 0.9285, 0.6897]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test3 (line 4) y = theSineOfAnglesOfATriangle(A,h);

4   Fail
A = 11; h = 7; y_correct = [0.9757, 0.9757, 0.4274]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test4 (line 4) y = theSineOfAnglesOfATriangle(A,h);

5   Fail
A = 10; h = 7; y_correct = [0.9798, 0.9798, 0.3918]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test5 (line 4) y = theSineOfAnglesOfATriangle(A,h);

6   Fail
A = 100; h = 90; y_correct = [0.9999, 0.9999, 0.0247]; y = theSineOfAnglesOfATriangle(A,h); assert(abs(y(1)-y_correct(1))<tolerance) assert(abs(y(2)-y_correct(2))<tolerance) assert(abs(y(3)-y_correct(3))<tolerance)

Output argument "y" (and maybe others) not assigned during call to "theSineOfAnglesOfATriangle". Error in Test6 (line 4) y = theSineOfAnglesOfATriangle(A,h);

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!