Cody

Solution 2115941

Submitted on 3 Feb 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
y = your_fcn_name(100,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 2 && std(diff(y)) == 0 );

y = Columns 1 through 17 -100.0000 -97.9798 -95.9596 -93.9394 -91.9192 -89.8990 -87.8788 -85.8586 -83.8384 -81.8182 -79.7980 -77.7778 -75.7576 -73.7374 -71.7172 -69.6970 -67.6768 Columns 18 through 34 -65.6566 -63.6364 -61.6162 -59.5960 -57.5758 -55.5556 -53.5354 -51.5152 -49.4949 -47.4747 -45.4545 -43.4343 -41.4141 -39.3939 -37.3737 -35.3535 -33.3333 Columns 35 through 51 -31.3131 -29.2929 -27.2727 -25.2525 -23.2323 -21.2121 -19.1919 -17.1717 -15.1515 -13.1313 -11.1111 -9.0909 -7.0707 -5.0505 -3.0303 -1.0101 1.0101 Columns 52 through 68 3.0303 5.0505 7.0707 9.0909 11.1111 13.1313 15.1515 17.1717 19.1919 21.2121 23.2323 25.2525 27.2727 29.2929 31.3131 33.3333 35.3535 Columns 69 through 85 37.3737 39.3939 41.4141 43.4343 45.4545 47.4747 49.4949 51.5152 53.5354 55.5556 57.5758 59.5960 61.6162 63.6364 65.6566 67.6768 69.6970 Columns 86 through 100 71.7172 73.7374 75.7576 77.7778 79.7980 81.8182 83.8384 85.8586 87.8788 89.8990 91.9192 93.9394 95.9596 97.9798 100.0000

Assertion failed.

2   Fail
y = your_fcn_name(200,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 1 && std(diff(y)) == 0 );

y = Columns 1 through 17 -100.0000 -96.9697 -93.9394 -90.9091 -87.8788 -84.8485 -81.8182 -78.7879 -75.7576 -72.7273 -69.6970 -66.6667 -63.6364 -60.6061 -57.5758 -54.5455 -51.5152 Columns 18 through 34 -48.4848 -45.4545 -42.4242 -39.3939 -36.3636 -33.3333 -30.3030 -27.2727 -24.2424 -21.2121 -18.1818 -15.1515 -12.1212 -9.0909 -6.0606 -3.0303 0 Columns 35 through 51 3.0303 6.0606 9.0909 12.1212 15.1515 18.1818 21.2121 24.2424 27.2727 30.3030 33.3333 36.3636 39.3939 42.4242 45.4545 48.4848 51.5152 Columns 52 through 68 54.5455 57.5758 60.6061 63.6364 66.6667 69.6970 72.7273 75.7576 78.7879 81.8182 84.8485 87.8788 90.9091 93.9394 96.9697 100.0000 103.0303 Columns 69 through 85 106.0606 109.0909 112.1212 115.1515 118.1818 121.2121 124.2424 127.2727 130.3030 133.3333 136.3636 139.3939 142.4242 145.4545 148.4848 151.5152 154.5455 Columns 86 through 100 157.5758 160.6061 163.6364 166.6667 169.6970 172.7273 175.7576 178.7879 181.8182 184.8485 187.8788 190.9091 193.9394 196.9697 200.0000

Assertion failed.

3   Fail
y = your_fcn_name(2,100); assert( y(1) == -100 && y(end) == 100 && mean(diff(y))== 100 && std(diff(y)) == 0 );

y = Columns 1 through 17 -100.0000 -98.9697 -97.9394 -96.9091 -95.8788 -94.8485 -93.8182 -92.7879 -91.7576 -90.7273 -89.6970 -88.6667 -87.6364 -86.6061 -85.5758 -84.5455 -83.5152 Columns 18 through 34 -82.4848 -81.4545 -80.4242 -79.3939 -78.3636 -77.3333 -76.3030 -75.2727 -74.2424 -73.2121 -72.1818 -71.1515 -70.1212 -69.0909 -68.0606 -67.0303 -66.0000 Columns 35 through 51 -64.9697 -63.9394 -62.9091 -61.8788 -60.8485 -59.8182 -58.7879 -57.7576 -56.7273 -55.6970 -54.6667 -53.6364 -52.6061 -51.5758 -50.5455 -49.5152 -48.4848 Columns 52 through 68 -47.4545 -46.4242 -45.3939 -44.3636 -43.3333 -42.3030 -41.2727 -40.2424 -39.2121 -38.1818 -37.1515 -36.1212 -35.0909 -34.0606 -33.0303 -32.0000 -30.9697 Columns 69 through 85 -29.9394 -28.9091 -27.8788 -26.8485 -25.8182 -24.7879 -23.7576 -22.7273 -21.6970 -20.6667 -19.6364 -18.6061 -17.5758 -16.5455 -15.5152 -14.4848 -13.4545 Columns 86 through 100 -12.4242 -11.3939 -10.3636 -9.3333 -8.3030 -7.2727 -6.2424 -5.2121 -4.1818 -3.1515 -2.1212 -1.0909 -0.0606 0.9697 2.0000

Assertion failed.

Suggested Problems

More from this Author56