Test  Status  Code Input and Output 

1  Pass 
len = 1; wid = 1;
d_correct = 0.7071;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

2  Pass 
len = 2; wid = 3;
d_correct = 1.8028;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
2
len =
3
wid =
2

3  Pass 
len = 3; wid = 8;
d_correct = 3.6056;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
3
len =
8
wid =
3
d =
4.1063
x =
0.8038
d =
3.6056

4  Pass 
len = 4; wid = 3;
d_correct = 2.5000;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

5  Pass 
len = 5; wid = 4;
d_correct = 3.2016;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

6  Pass 
len = 5; wid = 6;
d_correct = 3.9051;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
5
len =
6
wid =
5

7  Pass 
len = 5; wid = 11;
d_correct = 5.5200;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
5
len =
11
wid =
5
d =
5.5204
x =
0.4103

8  Pass 
len = 7; wid = 6;
d_correct = 4.6098;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

9  Pass 
len = 8; wid = 7;
d_correct = 5.3151;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

10  Pass 
len = 8; wid = 9;
d_correct = 6.0208;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
8
len =
9
wid =
8

11  Pass 
len = 10; wid = 9;
d_correct = 6.7268;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

12  Pass 
len = 11; wid = 10;
d_correct = 7.4330;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

13  Pass 
len = 12; wid = 23;
d_correct = 12.2018;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
12
len =
23
wid =
12
d =
12.2028
x =
3.5346

14  Pass 
len = 15; wid = 32;
d_correct = 16.1616;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
15
len =
32
wid =
15
d =
16.1626
x =
1.9808

15  Pass 
len = 16; wid = 32;
d_correct = 16.5644;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
16
len =
32
wid =
16
d =
16.5644
x =
3.7128

16  Pass 
len = 17; wid = 32;
d_correct = 17.1902;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
17
len =
32
wid =
17
d =
17.1909
x =
5.4449

17  Pass 
len = 64; wid = 1;
d_correct = 16.0312;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
d =
62.2760
x =
46.2679
d =
16.0312

18  Pass 
len = 36; wid = 36;
d_correct = 25.4558;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

19  Pass 
len = 48; wid = 24;
d_correct = 24.8466;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
d =
24.8466
x =
5.5692

20  Pass 
len = 26; wid = 48;
d_correct = 26.1679;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
26
len =
48
wid =
26
d =
26.1687
x =
9.0333

21  Pass 
len = 100.25; wid = 100.25;
d_correct = 70.8875;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

22  Pass 
len = 500; wid = 250;
d_correct = 258.8190;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
d =
258.8190
x =
58.0127

23  Pass 
len = 500; wid = 1000;
d_correct = 517.6381;
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)
len1 =
500
len =
1000
wid =
500
d =
517.6381
x =
116.0254

24  Pass 
len = randi([1,1e4]); wid = len;
d_correct = sqrt((len/2)^2+(wid/2)^2);
assert(abs(birthdaycandles(len,wid)d_correct)<1e2)

1109 Solvers
Back to basics 11  Max Integer
602 Solvers
Operate on matrices of unequal, yet similar, size
73 Solvers
299 Solvers
Pandigital Multiples of 11 (based on Project Euler 491)
39 Solvers