Cody

Problem 1072. Television Screen Dimensions

Solution 3824163

Submitted on 24 Nov 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
[W,H]=teledims(2.4,1,46); assert(H == 17.7 && W == 42.5)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test1 (line 1) [W,H]=teledims(2.4,1,46);

2   Fail
[W,H]=teledims(4,3,32); assert(H == 19.2 && W == 25.6)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test2 (line 1) [W,H]=teledims(4,3,32);

3   Fail
[W,H]=teledims(3,2,60); assert(H == 33.3 && W == 49.9)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test3 (line 1) [W,H]=teledims(3,2,60);

4   Fail
[W,H]=teledims(1.85,1,42); assert(H == 20.0 && W == 36.9)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test4 (line 1) [W,H]=teledims(1.85,1,42);

5   Fail
[W,H]=teledims(3,2,1000); assert(H == 554.7 && W == 832.1)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test5 (line 1) [W,H]=teledims(3,2,1000);

6   Fail
[W,H]=teledims(16,10,92); assert(H == 48.8 && W == 78.0)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test6 (line 1) [W,H]=teledims(16,10,92);

7   Fail
[W,H]=teledims(2.4,1,92); assert(H == 35.4 && W == 84.9)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test7 (line 1) [W,H]=teledims(2.4,1,92);

8   Fail
[W,H]=teledims(16,10,32); assert(H == 17.0 && W == 27.1)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test8 (line 1) [W,H]=teledims(16,10,32);

9   Fail
[W,H]=teledims(3,2,82); assert(H == 45.5 && W == 68.2)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test9 (line 1) [W,H]=teledims(3,2,82);

10   Fail
[W,H]=teledims(16,10,82); assert(H == 43.5 && W == 69.5)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test10 (line 1) [W,H]=teledims(16,10,82);

11   Fail
[W,H]=teledims(16,10,60); assert(H == 31.8 && W == 50.9)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test11 (line 1) [W,H]=teledims(16,10,60);

12   Fail
[W,H]=teledims(3,2,92); assert(H == 51.0 && W == 76.5)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test12 (line 1) [W,H]=teledims(3,2,92);

13   Fail
[W,H]=teledims(1.85,1,1000); assert(H == 475.5 && W == 879.7)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test13 (line 1) [W,H]=teledims(1.85,1,1000);

14   Fail
[W,H]=teledims(2.4,1,42); assert(H == 16.2 && W == 38.8)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test14 (line 1) [W,H]=teledims(2.4,1,42);

15   Fail
[W,H]=teledims(1.85,1,27); assert(H == 12.8 && W == 23.8)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test15 (line 1) [W,H]=teledims(1.85,1,27);

16   Fail
[W,H]=teledims(16,10,82); assert(H == 43.5 && W == 69.5)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test16 (line 1) [W,H]=teledims(16,10,82);

17   Fail
[W,H]=teledims(4,3,46); assert(H == 27.6 && W == 36.8)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test17 (line 1) [W,H]=teledims(4,3,46);

18   Fail
[W,H]=teledims(2.4,1,60); assert(H == 23.1 && W == 55.4)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test18 (line 1) [W,H]=teledims(2.4,1,60);

19   Fail
[W,H]=teledims(4,3,92); assert(H == 55.2 && W == 73.6)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test19 (line 1) [W,H]=teledims(4,3,92);

20   Fail
[W,H]=teledims(1.85,1,60); assert(H == 28.5 && W == 52.8)

Unrecognized function or variable 'p'. Error in teledims (line 2) H = round(sqrt(l*l*(p*p/(p*p+w*w))),1) Error in Test20 (line 1) [W,H]=teledims(1.85,1,60);

Suggested Problems

More from this Author56

Community Treasure Hunt

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

Start Hunting!