Test  Status  Code Input and Output 

1  Pass 
P=14;
A=12;
y=wrecked_angles(P,A);
y_correct = 20.63495408493621;
junk=abs(yy_correct);
assert(junk1<1e10);
H =
3
W =
4
d =
5
area =
19.6350

2  Pass 
P=34;
A=60;
y=wrecked_angles(P,A);
y_correct = 131.7322896141688;
junk=abs(yy_correct);
assert(junk1<1e10);
H =
5
W =
12
d =
13
area =
132.7323

3  Pass 
P=62;
A=168;
y=wrecked_angles(P,A);
y_correct = 590.8738521234052;
junk=abs(yy_correct);
assert(junk100<1e10);
H =
7
W =
24
d =
25
area =
490.8739

4  Pass 
s1=100;
totalsum=zeros(1,s1);
for s2=1:s1
P=2*(s1+s2);
A=s1*s2;
totalsum(s2)=wrecked_angles(P,A);
end
s=sum(totalsum);
s_correct=1051137.631982975;
s_junk=abs(ss_correct);
assert(s_junk<1e8);
d=max(totalsum)min(totalsum);
d_correct=7853.196235811095;
d_junk=abs(dd_correct);
assert(d_junk<1e8);
H =
1
W =
100
d =
100.0050
area =
7.8548e+03
H =
2
W =
100
d =
100.0200
area =
7.8571e+03
H =
3
W =
100
d =
100.0450
area =
7.8611e+03
H =
4
W =
100
d =
100.0800
area =
7.8665e+03
H =
5
W =
100
d =
100.1249
area =
7.8736e+03
H =
6
W =
100
d =
100.1798
area =
7.8823e+03
H =
7
W =
100
d =
100.2447
area =
7.8925e+03
H =
8
W =
100
d =
100.3195
area =
7.9042e+03
H =
9
W =
100
d =
100.4042
area =
7.9176e+03
H =
10
W =
100
d =
100.4988
area =
7.9325e+03
H =
11
W =
100
d =
100.6032
area =
7.9490e+03
H =
12
W =
100
d =
100.7174
area =
7.9671e+03
H =
13
W =
100
d =
100.8415
area =
7.9867e+03
H =
14
W =
100
d =
100.9752
area =
8.0079e+03
H =
15
W =
100
d =
101.1187
area =
8.0307e+03
H =
16
W =
100
d =
101.2719
area =
8.0550e+03
H =
17
W =
100
d =
101.4347
area =
8.0810e+03
H =
18
W =
100
d =
101.6071
area =
8.1085e+03
H =
19
W =
100
d =
101.7890
area =
8.1375e+03
H =
20
W =
100
d =
101.9804
area =
8.1681e+03
H =
21
W =
100
d =
102.1812
area =
8.2003e+03
H =
22
W =
100
d =
102.3914
area =
8.2341e+03
H =
23
W =
100
d =
102.6109
area =
8.2695e+03
H =
24
W =
100
d =
102.8397
area =
8.3064e+03
H =
25
W =
100
d =
103.0776
area =
8.3449e+03
H =
26
W =
100
d =
103.3247
area =
8.3849e+03
H =
27
W =
100
d =
103.5809
area =
8.4265e+03
H =
28
W =
100
d =
103.8460
area =
8.4697e+03
H =
29
W =
100
d =
104.1201
area =
8.5145e+03
H =
30
W =
100
d =
104.4031
area =
8.5608e+03
H =
31
W =
100
d =
104.6948
area =
8.6087e+03
H =
32
W =
100
d =
104.9952
area =
8.6582e+03
H =
33
W =
100
d =
105.3043
area =
8.7093e+03
H =
34
W =
100
d =
105.6220
area =
8.7619e+03
H =
35
W =
100
d =
105.9481
area =
8.8161e+03
H =
36
W =
100
d =
106.2826
area =
8.8719e+03
H =
37
W =
100
d =
106.6255
area =
8.9292e+03
H =
38
W =
100
d =
106.9766
area =
8.9881e+03
H =
39
W =
100
d =
107.3359
area =
9.0486e+03
H =
40
W =
100
d =
107.7033
area =
9.1106e+03
H =
41
W =
100
d =
108.0787
area =
9.1742e+03
H =
42
W =
100
d =
108.4620
area =
9.2394e+03
H =
43
W =
100
d =
108.8531
area =
9.3062e+03
H =
44
W =
100
d =
109.2520
area =
9.3745e+03
H =
45
W =
100
d =
109.6586
area =
9.4444e+03
H =
46
W =
100
d =
110.0727
area =
9.5159e+03
H =
47
W =
100
d =
110.4943
area =
9.5889e+03
H =
48
W =
100
d =
110.9234
area =
9.6635e+03
H =
49
W =
100
d =
111.3598
area =
9.7397e+03
H =
50
W =
100
d =
111.8034
area =
9.8175e+03
H =
51
W =
100
d =
112.2542
area =
9.8968e+03
H =
52
W =
100
d =
112.7120
area =
9.9777e+03
H =
53
W =
100
d =
113.1769
area =
1.0060e+04
H =
54
W =
100
d =
113.6486
area =
1.0144e+04
H =
55
W =
100
d =
114.1271
area =
1.0230e+04
H =
56
W =
100
d =
114.6124
area =
1.0317e+04
H =
57
W =
100
d =
115.1043
area =
1.0406e+04
H =
58
W =
100
d =
115.6028
area =
1.0496e+04
H =
59
W =
100
d =
116.1077
area =
1.0588e+04
H =
60
W =
100
d =
116.6190
area =
1.0681e+04
H =
61
W =
100
d =
117.1367
area =
1.0776e+04
H =
62
W =
100
d =
117.6605
area =
1.0873e+04
H =
63
W =
100
d =
118.1905
area =
1.0971e+04
H =
64
W =
100
d =
118.7266
area =
1.1071e+04
H =
65
W =
100
d =
119.2686
area =
1.1172e+04
H =
66
W =
100
d =
119.8165
area =
1.1275e+04
H =
67
W =
100
d =
120.3703
area =
1.1380e+04
H =
68
W =
100
d =
120.9297
area =
1.1486e+04
H =
69
W =
100
d =
121.4949
area =
1.1593e+04
H =
70
W =
100
d =
122.0656
area =
1.1702e+04
H =
71
W =
100
d =
122.6418
area =
1.1813e+04
H =
72
W =
100
d =
123.2234
area =
1.1925e+04
H =
73
W =
100
d =
123.8103
area =
1.2039e+04
H =
74
W =
100
d =
124.4026
area =
1.2155e+04
H =
75
W =
100
d =
125
area =
1.2272e+04
H =
76
W =
100
d =
125.6025
area =
1.2390e+04
H =
77
W =
100
d =
126.2101
area =
1.2511e+04
H =
78
W =
100
d =
126.8227
area =
1.2632e+04
H =
79
W =
100
d =
127.4402
area =
1.2756e+04
H =
80
W =
100
d =
128.0625
area =
1.2881e+04
H =
81
W =
100
d =
128.6895
area =
1.3007e+04
H =
82
W =
100
d =
129.3213
area =
1.3135e+04
H =
83
W =
100
d =
129.9577
area =
1.3265e+04
H =
84
W =
100
d =
130.5986
area =
1.3396e+04
H =
85
W =
100
d =
131.2440
area =
1.3528e+04
H =
86
W =
100
d =
131.8939
area =
1.3663e+04
H =
87
W =
100
d =
132.5481
area =
1.3799e+04
H =
88
W =
100
d =
133.2066
area =
1.3936e+04
H =
89
W =
100
d =
133.8693
area =
1.4075e+04
H =
90
W =
100
d =
134.5362
area =
1.4216e+04
H =
91
W =
100
d =
135.2072
area =
1.4358e+04
H =
92
W =
100
d =
135.8823
area =
1.4502e+04
H =
93
W =
100
d =
136.5613
area =
1.4647e+04
H =
94
W =
100
d =
137.2443
area =
1.4794e+04
H =
95
W =
100
d =
137.9311
area =
1.4942e+04
H =
96
W =
100
d =
138.6218
area =
1.5092e+04
H =
97
W =
100
d =
139.3162
area =
1.5244e+04
H =
98
W =
100
d =
140.0143
area =
1.5397e+04
H =
99
W =
100
d =
140.7160
area =
1.5552e+04
H =
100
W =
100
d =
141.4214
area =
1.5708e+04

5  Pass 
s1=wrecked_angles(32,64);
s2=wrecked_angles(72,288);
P=2*(s1+s2);
A=s1*s2;
y=wrecked_angles(P,A);
y_correct=259088.4479405854;
junk=abs(yy_correct);
assert(junk<1e10);
H =
8
W =
8
d =
11.3137
area =
100.5310
H =
12
W =
24
d =
26.8328
area =
565.4867
H =
100.5310
W =
565.4867
d =
574.3533
area =
2.5909e+05

Find the longest sequence of 1's in a binary sequence.
3452 Solvers
How to find the position of an element in a vector without using the find function
2994 Solvers
Who is the smartest MATLAB programmer?
535 Solvers
Area of an equilateral triangle
2465 Solvers
356 Solvers