This solution is outdated. To rescore this solution, sign in.
Test  Status  Code Input and Output 

1  Pass 
A = 60;
h = 5;
y_correct = [0.3752 0.3752 0.9623];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

2  Pass 
A = 12;
h = 4;
y_correct = [0.7174 0.7174 0.9320];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

3  Pass 
A = 120;
h = 8;
y_correct = [0.4534 0.4534 0.9813];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

4  Pass 
A = 11;
h = 7;
y_correct = [0.828103613613504 0.828103613613504 0.424198555538884];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

5  Pass 
A = 10;
h = pi;
y_correct = [0.646090546283235 0.646090546283235 0.989166179104111];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

6  Pass 
A = 100;
h = 90;
y_correct = [0.841429811769772 0.841429811769772 0.0246869683113754];
tolerance = 1e4;
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)
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function
to avoid a potential name conflict.]
ans =
1
ans =
1
ans =
1

Find the longest sequence of 1's in a binary sequence.
2444 Solvers
747 Solvers
299 Solvers
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
145 Solvers
2131 Solvers