Cody

Problem 1103. Right Triangle Side Lengths (Inspired by Project Euler Problem 39)

Solution 2813128

Submitted on 9 Aug 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
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 D = 1 2 3 4 5 6 8 10 12 15 16 20 24 30 40 48 60 80 120 240 m = 1 n = 20 a = 1 b1 = 119.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 a = 2 b1 = 119 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 c1 = 66.0303 p1 = 134.0303 c1 = 67.0298 p1 = 136.0298 c1 = 68.0294 p1 = 138.0294 c1 = 69.0290 p1 = 140.0290 c1 = 70.0286 p1 = 142.0286 c1 = 71.0282 p1 = 144.0282 c1 = 72.0278 p1 = 146.0278 c1 = 73.0274 p1 = 148.0274 c1 = 74.0270 p1 = 150.0270 c1 = 75.0267 p1 = 152.0267 c1 = 76.0263 p1 = 154.0263 c1 = 77.0260 p1 = 156.0260 c1 = 78.0256 p1 = 158.0256 c1 = 79.0253 p1 = 160.0253 c1 = 80.0250 p1 = 162.0250 c1 = 81.0247 p1 = 164.0247 c1 = 82.0244 p1 = 166.0244 c1 = 83.0241 p1 = 168.0241 c1 = 84.0238 p1 = 170.0238 c1 = 85.0235 p1 = 172.0235 c1 = 86.0233 p1 = 174.0233 c1 = 87.0230 p1 = 176.0230 c1 = 88.0227 p1 = 178.0227 c1 = 89.0225 p1 = 180.0225 c1 = 90.0222 p1 = 182.0222 c1 = 91.0220 p1 = 184.0220 c1 = 92.0217 p1 = 186.0217 c1 = 93.0215 p1 = 188.0215 c1 = 94.0213 p1 = 190.0213 c1 = 95.0211 p1 = 192.0211 c1 = 96.0208 p1 = 194.0208 c1 = 97.0206 p1 = 196.0206 c1 = 98.0204 p1 = 198.0204 c1 = 99.0202 p1 = 200.0202 c1 = 100.0200 p1 = 202.0200 c1 = 101.0198 p1 = 204.0198 c1 = 102.0196 p1 = 206.0196 c1 = 103.0194 p1 = 208.0194 c1 = 104.0192 p1 = 210.0192 c1 = 105.0190 p1 = 212.0190 c1 = 106.0189 p1 = 214.0189 c1 = 107.0187 p1 = 216.0187 c1 = 108.0185 p1 = 218.0185 c1 = 109.0183 p1 = 220.0183 c1 = 110.0182 p1 = 222.0182 c1 = 111.0180 p1 = 224.0180 c1 = 112.0179 p1 = 226.0179 c1 = 113.0177 p1 = 228.0177 c1 = 114.0175 p1 = 230.0175 c1 = 115.0174 p1 = 232.0174 c1 = 116.0172 p1 = 234.0172 c1 = 117.0171 ...

Assertion failed.

2   Fail
assert(isequal(right_triangle_sides(240),{ [15 112 113] [40 96 104] [48 90 102] [60 80 100] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 D = 1 2 3 4 5 6 8 10 12 15 16 20 24 30 40 48 60 80 120 240 m = 1 n = 20 a = 1 b1 = 119.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 a = 2 b1 = 119 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 c1 = 66.0303 p1 = 134.0303 c1 = 67.0298 p1 = 136.0298 c1 = 68.0294 p1 = 138.0294 c1 = 69.0290 p1 = 140.0290 c1 = 70.0286 p1 = 142.0286 c1 = 71.0282 p1 = 144.0282 c1 = 72.0278 p1 = 146.0278 c1 = 73.0274 p1 = 148.0274 c1 = 74.0270 p1 = 150.0270 c1 = 75.0267 p1 = 152.0267 c1 = 76.0263 p1 = 154.0263 c1 = 77.0260 p1 = 156.0260 c1 = 78.0256 p1 = 158.0256 c1 = 79.0253 p1 = 160.0253 c1 = 80.0250 p1 = 162.0250 c1 = 81.0247 p1 = 164.0247 c1 = 82.0244 p1 = 166.0244 c1 = 83.0241 p1 = 168.0241 c1 = 84.0238 p1 = 170.0238 c1 = 85.0235 p1 = 172.0235 c1 = 86.0233 p1 = 174.0233 c1 = 87.0230 p1 = 176.0230 c1 = 88.0227 p1 = 178.0227 c1 = 89.0225 p1 = 180.0225 c1 = 90.0222 p1 = 182.0222 c1 = 91.0220 p1 = 184.0220 c1 = 92.0217 p1 = 186.0217 c1 = 93.0215 p1 = 188.0215 c1 = 94.0213 p1 = 190.0213 c1 = 95.0211 p1 = 192.0211 c1 = 96.0208 p1 = 194.0208 c1 = 97.0206 p1 = 196.0206 c1 = 98.0204 p1 = 198.0204 c1 = 99.0202 p1 = 200.0202 c1 = 100.0200 p1 = 202.0200 c1 = 101.0198 p1 = 204.0198 c1 = 102.0196 p1 = 206.0196 c1 = 103.0194 p1 = 208.0194 c1 = 104.0192 p1 = 210.0192 c1 = 105.0190 p1 = 212.0190 c1 = 106.0189 p1 = 214.0189 c1 = 107.0187 p1 = 216.0187 c1 = 108.0185 p1 = 218.0185 c1 = 109.0183 p1 = 220.0183 c1 = 110.0182 p1 = 222.0182 c1 = 111.0180 p1 = 224.0180 c1 = 112.0179 p1 = 226.0179 c1 = 113.0177 p1 = 228.0177 c1 = 114.0175 p1 = 230.0175 c1 = 115.0174 p1 = 232.0174 c1 = 116.0172 p1 = 234.0172 c1 = 117.0171 ...

Assertion failed.

3   Fail
assert(isequal(right_triangle_sides(418),{ [57 176 185] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 209 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 D = 1 2 11 19 22 38 209 418 m = 1 n = 8 a = 1 b1 = 208.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = 399.0025 c1 = 200.0025 p1 = 401.0025 c1 = 201.0025 p1 = 403.0025 c1 = 202.0025 p1 = 405.0025 c1 = 203.0025 p1 = 407.0025 c1 = 204.0025 p1 = 409.0025 c1 = 205.0024 p1 = 411.0024 c1 = 206.0024 p1 = 413.0024 c1 = 207.0024 p1 = 415.0024 c1 = 208.0024 p1 = 417.0024 a = 2 b1 = 208 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c...

Output argument "c" (and maybe others) not assigned during call to "right_triangle_sides". Error in Test3 (line 1) assert(isequal(right_triangle_sides(418),{ [57 176 185] }))

4   Fail
assert(isequal(right_triangle_sides(490),{ [140 147 203] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 245 241 242 243 244 245 D = 1 2 5 7 10 14 35 49 70 98 245 490 m = 1 n = 12 a = 1 b1 = 244.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = 399.0025 c1 = 200.0025 p1 = 401.0025 c1 = 201.0025 p1 = 403.0025 c1 = 202.0025 p1 = 405.0025 c1 = 203.0025 p1 = 407.0025 c1 = 204.0025 p1 = 409.0025 c1 = 205.0024 p1 = 411.0024 c1 = 206.0024 p1 = 413.0024 c1 = 207.0024 p1 = 415.0024 c1 = 208.0024 p1 = 417.0024 c1 = 209.0024 p1 = 419.0024 c1 = 210.0024 p1 = 421.0024 c1 = 211.0024 p1 = 423.0024 c1 = 212.0024 p1 = 425.0024 c1 = 213.0023 p1 = 427.0023 c1 = 214.0023 p1 = 429.0023 ...

Output argument "c" (and maybe others) not assigned during call to "right_triangle_sides". Error in Test4 (line 1) assert(isequal(right_triangle_sides(490),{ [140 147 203] }))

5   Pass
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 56 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 D = 1 2 4 7 8 14 16 28 56 112 m = 1 n = 10 a = 1 b1 = 55.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 a = 2 b1 = 55 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 a = 4 b1 = 54 c1 = 4.1231 p1 = 9.1231 c1 = 4.4721 p1 = 10.4721 c1 = 5 p1 = 12 c1 = 5.6569 p1 = 13.6569 c1 = 6.4031 p1 = 15.4031 c1 = 7.2111 p1 = 17.2111 c1 = 8.0623 p1 = 19.0623 c1 = 8.9443 p1 = 20.9443 c1 = 9.8489 p1 = 22.8489 c1 = 10.7703 p1 = 24.7703 c1 = 11.7047 p1 = 26.7047 c1 = 12.6491 p1 = 28.6491 c1 = 13.6015 p1 = 30.6015 c1 = 14.5602 p1 = 32.5602 c1 = 15.5242 p1 = 34.5242 c1 = 16.4924 p1 = 36.4924 c1 = 17.4642 p1 = 38.4642 c1 = 18.4391 p1 = 40.4391 c1 = 19.4165 p1 = 42.4165 c1 = 20.3961 p1 = 44.3961 c1 = 21.3776 p1 = 46.3776 c1 = 22.3607 p1 = 48.3607 c1 = 23.3452 p1 = 50.3452 c1 = 24.3311 p1 = 52.3311 c1 = 25.3180 p1 = 54.3180 c1 = 26.3059 p1 = 56.3059 c1 = 27.2947 p1 = 58.2947 c1 = 28.2843 p1 = 60.2843 c1 = 29.2746 p1 = 62.2746 c1 = 30.2655 p1 = 64.2655 c1 = 31.2570 p1 = 66.2570 c1 = 32.2490 p1 = 68.2490 c1 = 33.2415 p1 = 70.2415 c1 = 34.2345 p1 = 72.2345 c1 = 35.2278 p1 = 74.2278 c1 = 36.2215 p1 = 76.2215 c1 = 37.2156 p1 = 78.2156 c1 = 38.2099 p1 = 80.2099 c1 = 39.2046 p1 = 82.2046 c1 = 40.1995 p1 = 84.1995 c1 = 41.1947 p1 = 86.1947 c1 = 42.1900 p1 = 88.1900 c1 = 43.1856 p1 = 90.1856 c1 = 44.1814 p1 = 92.1814 c1 = 45.1774 p1 = 94.1774 c1 = 46.1736 p1 = 96.1736 c1 = 47.1699 p1 = 98.1699 c1 = 48.1664 p1 = 100.1664 c1 = 49.1630 p1 = 102.1630 c1 = 50.1597 p1 = 104.1597 c1 = 51.1566 p1 = 106.1566 c1 = 52.1536 p1 = 108.1536 c1 = 53.1507 p1 = 110.1507 c1 = 54.1479 p1 = 112.1479 a = 7 b1 = 52.5000 c1 = 7.0711 p1 = 15.0711 c1 = 7.2801 p1 = 16.2801 c1 = 7.6158 p1 = 17.6158 c1 = 8.0623 p1 = 19.0623 c1 = 8.6023 p1 = 20.6023 c1 = 9.2195 p1 = 22.2195 c1 = 9.8995 p1 = 23.8995 c1 = 10.6301 p1 = 25.6301 c1 = 11.4018 p1 = 27.4018 c1 = 12.2066 p1 = 29.2066 c1 = 13.0384 p1 = 31.0384 c1 = 13.8924 p1 = 32.8924 c1 = 14.7648 p1 = 34.7648 c1 = 15.6525 p1 = 36.6525 c1 = 16.5529 p1 = 38.5529 c1 = 17.4642 p1 = 40.4642 c1 = 18.3848 p1 = 42.3848 c1 = 19.3132 p1 = 44.3132 c1 = 20.2485 p1 = 46.2485 c1 = 21.1896 p1 = 48.1896 c1 = 22.1359 p1 = 50.1359 c1 = 23.0868 p1 = 52.0868 c1 = 24.0416 p1 = 54.0416 c1 = 25 p1 = 56 c1 = 25.9615 p1 = 57.9615 c1 = 26.9258 p1 = 59.9258 c1 = 27.8927 p1 = 61.8927 c1 = 28.8617 p1 = 63.8617 c1 = 29.8329 p1 = 65.8329 c1 = 30.8058 p1 = 67.8058 c1 = 31.7805 p1 = 69.7805 c1 = 32.7567 p1 = 71.7567 c1 = 33.7343 p1 = 73.7343 c1 = 34.7131 p1 = 75.7131 c1 = 35.6931 p1 = 77.6931 c1 = 36.6742 p1 = 79.6742 c1 = 37.6563 p1 = 81.6563 c1 = 38.6394 p1 = 83.6394 c1 = 39.6232 p1 = 85.6232 c1 = 40.6079 p1 = 87.6079 c1 = 41.5933 p1 = 89.5933 c1 = 42.5793 p1 = 91.5793 c1 = 43.5660 p1 = 93.5660 c1 = 44.5533 p1 = 95.5533 c1 = 45.5412 p1 = 97.5412 c1 = 46.5296 p1 = 99.5296 c1 = 47.5184 p1 = 101.5184 c1 = 48.5077 p1 = 103.5077 c1 = 49.4975 p1 = 105.4975 c1 = 50.4876 p1 = 107.4876 c1 = 51.4782 p1 = 109.4782 c1 = 52.4690 p1 = 111.4690 a = 8 b1 = 52 c1 = 8.0623 p1 = 17.0623 c1 = 8.2462 p1 = 18.2462 c1 = 8.5440 p1 = 19.5440 c1 = 8.9443 p1 = 20.9443 c1 = 9.4340 p1 = 22.4340 c1 = 10 p1 = 24 c1 = 10.6301 p1 = 25.6301 c1 = 11.3137 p1 = 27.3137 c1 = 12.0416 p1 = 29.0416 c1 = 12.8062 p1 = 30.8062 c1 = 13.6015 p1 = 32.6015 c1 = 14.4222 p1 = 34.4222 c1 = 15.2643 p1 = 36.2643 c1 = 16.1245 p1 = 38.1245 c1 = 17 p1 = 40 c1 = 17.8885 p1 = 41.8885 c1 = 18.7883 p1 = 43.7883 c1 = 19.6977 p1 = 45.6977 c1 = 20.6155 p1 = 47.6155 c1 = 21.5407 p1 = 49.5407 c1 = 22.4722 p1 = 51.4722 c1 = 23.4094 p1 = 53.4094 c1 = 24.3516 p1 = 55.3516 c1 = 25.2982 p1 = 57.2982 c1 = 26.2488 p1 = 59.2488 c1 = 27.2029 p1 = 61.2029 c1 = 28.1603 p1 = 63.1603 c1 = 29.1204 p1 = 65.1204 c1 = 30.0832 p1 = 67.0832 c1 = 31.0483 p1 = 69.0483 c1 = 32.0156 p1 = 71.0156 c1...

6   Fail
assert(isequal(right_triangle_sides(390),{ [52 165 173] [65 156 169] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 195 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 D = 1 2 3 5 6 10 13 15 26 30 39 65 78 130 195 390 m = 1 n = 16 a = 1 b1 = 194.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 a = 2 b1 = 194 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 ...

Assertion failed.

7   Fail
assert(isequal(right_triangle_sides(132),{ [11 60 61] [33 44 55] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 66 61 62 63 64 65 66 D = 1 2 3 4 6 11 12 22 33 44 66 132 m = 1 n = 12 a = 1 b1 = 65.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 a = 2 b1 = 65 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 a = 3 b1 = 64.5000 c1 = 3.1623 p1 = 7.1623 c1 = 3.6056 p1 = 8.6056 c1 = 4.2426 p1 = 10.2426 c1 = 5 p1 = 12 c1 = 5.8310 p1 = 13.8310 c1 = 6.7082 p1 = 15.7082 c1 = 7.6158 p1 = 17.6158 c1 = 8.5440 p1 = 19.5440 c1 = 9.4868 p1 = 21.4868 c1 = 10.4403 p1 = 23.4403 c1 = 11.4018 p1 = 25.4018 c1 = 12.3693 p1 = 27.3693 c1 = 13.3417 p1 = 29.3417 c1 = 14.3178 p1 = 31.3178 c1 = 15.2971 p1 = 33.2971 c1 = 16.2788 p1 = 35.2788 c1 = 17.2627 p1 = 37.2627 c1 = 18.2483 p1 = 39.2483 c1 = 19.2354 p1 = 41.2354 c1 = 20.2237 p1 = 43.2237 c1 = 21.2132 p1 = 45.2132 c1 = 22.2036 p1 = 47.2036 c1 = 23.1948 p1 = 49.1948 c1 = 24.1868 p1 = 51.1868 c1 = 25.1794 p1 = 53.1794 c1 = 26.1725 p1 = 55.1725 c1 = 27.1662 p1 = 57.1662 c1 = 28.1603 p1 = 59.1603 c1 = 29.1548 p1 = 61.1548 c1 = 30.1496 p1 = 63.1496 c1 = 31.1448 p1 = 65.1448 c1 = 32.1403 p1 = 67.1403 c1 = 33.1361 p1 = 69.1361 c1 = 34.1321 p1 = 71.1321 c1 = 35.1283 p1 = 73.1283 c1 = 36.1248 p1 = 75.1248 c1 = 37.1214 p1 = 77.1214 c1 = 38.1182 p1 = 79.1182 c1 = 39.1152 p1 = 81.1152 c1 = 40.1123 p1 = 83.1123 c1 = 41.1096 p1 = 85.1096 c1 = 42.1070 p1 = 87.1070 c1 = 43.1045 p1 = 89.1045 c1 = 44.1022 p1 = 91.1022 c1 = 45.0999 p1 = 93.0999 c1 = 46.0977 p1 = 95.0977 c1 = 47.0956 p1 = 97.0956 c1 = 48.0937 p1 = 99.0937 c1 = 49.0918 p1 = 101.0918 c1 = 50.0899 p1 = 103.0899 c1 = 51.0882 p1 = 105.0882 c1 = 52.0865 p1 = 107.0865 c1 = 53.0848 p1 = 109.0848 c1 = 54.0833 p1 = 111.0833 c1 = 55.0818 p1 = 113.0818 c1 = 56.0803 p1 = 115.0803 c1 = 57.0789 p1 = 117.0789 c1 = 58.0775 p1 = 119.0775 c1 = 59.0762 p1 = 121.0762 c1 = 60.0750 p1 = 123.0750 c1 = 61.0737 p1 = 125.0737 c1 = 62.0725 p1 = 127.0725 c1 = 63.0714 p1 = 129.0714 c1 = 64.0703 p1 = 131.0703 a = 4 b1 = 64 c1 = 4.1231 p1 = 9.1231 c1 = 4.4721 p1 = 10.4721 c1 = 5 p1 = 12 c1 = 5.6569 p1 = 13.6569 c1 = 6.4031 p1 = 15.4031 c1 = 7.2111 p1 = 17.2111 c1 = 8.0623 p1 = 19.0623 c1 = 8.9443 p1 = 20.9443 c1 = 9.8489 p1 = 22.8489 c1 = 10.7703 p1 = 24.7703 c1 = 11.7047 p1 = 26.7047 c1 = 12.6491 p1 = 28.6491 c1 = 13.6015 p1 = 30.6015 c1 = 14.5602 p1 = 32.5602 c1 = 15.5242 p1 = 34.5242 c1 = 16.4924 p1 = 36.4924 c1 = 17.4642 p1 = 38.4642 c1 = 18.4391 p1 = 40.4391 c1 = 19.4165 p1 = 42.4165 c1 = 20.3961 p1 = 44.3961 c1 = 21.3776 p1 = 46.3776 c1 = 22.3607 p1 = 48.3607 c1 = 23.3452 p1 = 50.3452 c1 = 24.3311 p1 = 52.3311 c1 = 25.3180 p1 = 54.3180 c1 = 26.3059 p1 = 56.3059 c1 = 27.2947 p1 = 58.2947 c1 = 28.2843 p1 = 60.2843 c1 = 29.2746 p1 = 62.2746 c1 = 30.2655 p1 = 64.2655 c1 = 31.2570 p1 = 66.2570 c1 = 32.2490 p1 = 68.2490 c1 = 33.2415 p1 = 70.2415 c1 = 34.2345 p1 = 72.2345 c1 = 35.2278 p1 = 74.2278 c1 = 36.2215 p1 = 76.2215 c1 = 37.2156 p1 = 78.2156 c1 = 38.2099 p1 = 80.2099 c1 = 39.2046 p1 = 82.2046 c1 = 40.1995 p1 = 84.1995 c1 = 41.1947 p1 = 86.1947 c1 = 42.1900 p1 = 88.1900 c1 = 43.1856 p1 = 90.1856 c1 = 44.1814 p1 = 92.1814 c1 = 45.1774 p1 = 94.1774 c1 = 46.1736 p1 = 96.1736 c1 = 47.1699 p1 = 98.1699 c1 = 48.1664 p1 = 100.1664 c1 = 49.1630 p1 = 102.1630 c1 = 50.1597 p1 = 104.1597 c1 = 51.1566 p1 = 106...

Assertion failed.

8   Fail
assert(isequal(right_triangle_sides(576),{ [64 252 260] [144 192 240] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 288 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 D = 1 2 3 4 6 8 9 12 16 18 24 32 36 48 64 72 96 144 192 288 576 m = 1 n = 21 a = 1 b1 = 287.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = 399.0025 c1 = 200.0025 p1 = 401.0025 c1 = 201.0025 p1 = 403.0025 c1 = 202.0025 p1 = 405.0025 c1 = 203.0025 p1 = 407.0025 c1 = 204.0025 p1 = 409.0025 c1 = 205.0024 p1 = 411.0024 ...

Assertion failed.

9   Fail
assert(isequal(right_triangle_sides(60),{ [10 24 26] [15 20 25] }))

K = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 D = 1 2 3 4 5 6 10 12 15 20 30 60 m = 1 n = 12 a = 1 b1 = 29.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 a = 2 b1 = 29 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 a = 3 b1 = 28.5000 c1 = 3.1623 p1 = 7.1623 c1 = 3.6056 p1 = 8.6056 c1 = 4.2426 p1 = 10.2426 c1 = 5 p1 = 12 c1 = 5.8310 p1 = 13.8310 c1 = 6.7082 p1 = 15.7082 c1 = 7.6158 p1 = 17.6158 c1 = 8.5440 p1 = 19.5440 c1 = 9.4868 p1 = 21.4868 c1 = 10.4403 p1 = 23.4403 c1 = 11.4018 p1 = 25.4018 c1 = 12.3693 p1 = 27.3693 c1 = 13.3417 p1 = 29.3417 c1 = 14.3178 p1 = 31.3178 c1 = 15.2971 p1 = 33.2971 c1 = 16.2788 p1 = 35.2788 c1 = 17.2627 p1 = 37.2627 c1 = 18.2483 p1 = 39.2483 c1 = 19.2354 p1 = 41.2354 c1 = 20.2237 p1 = 43.2237 c1 = 21.2132 p1 = 45.2132 c1 = 22.2036 p1 = 47.2036 c1 = 23.1948 p1 = 49.1948 c1 = 24.1868 p1 = 51.1868 c1 = 25.1794 p1 = 53.1794 c1 = 26.1725 p1 = 55.1725 c1 = 27.1662 p1 = 57.1662 c1 = 28.1603 p1 = 59.1603 a = 4 b1 = 28 c1 = 4.1231 p1 = 9.1231 c1 = 4.4721 p1 = 10.4721 c1 = 5 p1 = 12 c1 = 5.6569 p1 = 13.6569 c1 = 6.4031 p1 = 15.4031 c1 = 7.2111 p1 = 17.2111 c1 = 8.0623 p1 = 19.0623 c1 = 8.9443 p1 = 20.9443 c1 = 9.8489 p1 = 22.8489 c1 = 10.7703 p1 = 24.7703 c1 = 11.7047 p1 = 26.7047 c1 = 12.6491 p1 = 28.6491 c1 = 13.6015 p1 = 30.6015 c1 = 14.5602 p1 = 32.5602 c1 = 15.5242 p1 = 34.5242 c1 = 16.4924 p1 = 36.4924 c1 = 17.4642 p1 = 38.4642 c1 = 18.4391 p1 = 40.4391 c1 = 19.4165 p1 = 42.4165 c1 = 20.3961 p1 = 44.3961 c1 = 21.3776 p1 = 46.3776 c1 = 22.3607 p1 = 48.3607 c1 = 23.3452 p1 = 50.3452 c1 = 24.3311 p1 = 52.3311 c1 = 25.3180 p1 = 54.3180 c1 = 26.3059 p1 = 56.3059 c1 = 27.2947 p1 = 58.2947 c1 = 28.2843 p1 = 60.2843 a = 5 b1 = 27.5000 c1 = 5.0990 p1 = 11.0990 c1 = 5.3852 p1 = 12.3852 c1 = 5.8310 p1 = 13.8310 c1 = 6.4031 p1 = 15.4031 c1 = 7.0711 p1 = 17.0711 c1 = 7.8102 p1 = 18.8102 c1 = 8.6023 p1 = 20.6023 c1 = 9.4340 p1 = 22.4340 c1 = 10.2956 p1 = 24.2956 c1 = 11.1803 p1 = 26.1803 c1 = 12.0830 p1 = 28.0830 c1 = 13 p1 = 30 c1 = 13.9284 p1 = 31.9284 c1 = 14.8661 p1 = 33.8661 c1 = 15.8114 p1 = 35.8114 c1 = 16.7631 p1 = 37.7631 c1 = 17.7200 p1 = 39.7200 c1 = 18.6815 p1 = 41.6815 c1 = 19.6469 p1 = 43.6469 c1 = 20.6155 p1 = 45.6155 c1 = 21.5870 p1 = 47.5870 c1 = 22.5610 p1 = 49.5610 c1 = 23.5372 p1 = 51.5372 c1 = 24.5153 p1 = 53.5153 c1 = 25.4951 p1 = 55.4951 c1 = 26.4764 p1 = 57.4764 c1 = 27.4591 p1 = 59.4591 a = 6 b1 = 27 c1 = 6.0828 p1 = 13.0828 c1 = 6.3246 p1 = 14.3246 c1 = 6.7082 p1 = 15.7082 c1 = 7.2111 p1 = 17.2111 c1 = 7.8102 p1 = 18.8102 c1 = 8.4853 p1 = 20.4853 c1 = 9.2195 p1 = 22.2195 c1 = 10 p1 = 24 c1 = 10.8167 p1 = 25.8167 c1 = 11.6619 p1 = 27.6619 c1 = 12.5300 p1 = 29.5300 c1 = 13.4164 p1 = 31.4164 c1 = 14.3178 p1 = 33.3178 c1 = 15.2315 p1 = 35.2315 c1 = 16.1555 p1 = 37.1555 c1 = 17.0880 p1 = 39.0880 c1 = 18.0278 p1 = 41.0278 c1 = 18.9737 p1 = 42.9737 c1 = 19.9249 p1 = 44.9249 c1 = 20.8806 p1 = 46.8806 c1 = 21.8403 p1 = 48.8403 c1 = 22.8035 p1 = 50.8035 c1 = 23.7697 p1 = 52.7697 c1 = 24.7386 p1 = 54.7386 c1 = 25.7099 p1 = 56.7099 c1 = 26.6833 p1 = 58.6833 c1 = 27.6586 p1 = 60.6586 a = 10 b1 = 25 c1 = 10.0499 p1 = 21.0499 c1 = 10.1980 p1 = 22.1980 c1 = 10.4403 p1 = 23.4403 c1 = 10.7703 p1 = 24.7703 c1 = 11.1803 p1 = 26.1803 c1 = 11.6619 p1 = 27.6619 c1 = 12.2066 p1 = 29.2066 c1 = 12.8062 p1 = 30.8062 c1 = 13.4536 p1 = 32.4536 c1 = 14.1421 p1 = 34.1421 c1 = 14.8661 p1 = 35.8661 c1 = 15.6205 p1 = 37.6205 c1 = 16.4012 p1 = 39.4012 c1 = 17.2047 p1 = 41.2047 c1 = 18.0278 p1 = 43.0278 c1 = 18.8680 p1 = 44.8680 c1 = 19.7231 p1 = 46.7231 c1 = 20.5913 p1 = 48.5913 c1 = 21.4709 p1 = 50.4709 c1 = 22.3607 p1 = 52.3607 c1 = 23.2594 p1 = 54.2594 c1 = 24.1661 p1 = 56.1661 c1 = 25.0799 p1 = 58.0799 c1 = 26 p1 = 60 c = 1×1 cell array {1×3 double} c1 = 26.9258 p1 = 61.9258 a = 12 b1 = 24 c1 = 12.0416 p1 = 25.0416 c1 = 12.1655 p1 = 26.1655 c1 = 12.3693 p1 = 27.3693 c1 = 12.6491 p1 = 28.6491 c1 = 13 p1 = 30 c1 = 13.4164 p1 = 31.4164 c1 = 13.8924 p1 = 32.8924 c1 = 14.4222 p1 = 34.4222 c1 = 15 p1 = 36 c1 = 15.6205 p1 = 37.6205 c1 = 16.2788 p1 = 39.2788 c1 = 16.9706 p1 = 40.9706 c1 = 17.6918 p1 = 42.6918 c1 = 18.4391 p1 = 44.4391 c1 = 19.2094 p1 = 46.2094 c1 = 20 p1 = 48 c1 = 20.8087 p1 = 49.8087 c1 = 21.6333 p1 = 51.6333 c1 = 22.4722 p1 = 53.4722 c1 = 23.3238 p1 = 55.3238 c1 = 24.1868 p1 = 57.1868 c1 = 25.0599 p1 = 59.0599 c1 = 25.9422 p1 = 60.9422 c1 = 26.8328 p1 = 62.8328 a = 15 b1 = 22.5000 c1 = 15.0333 p1 = 31.0333 c1 = 15.1327 p1 = 32.1327 c1 = 15.2971 p1 = 33.2971 c1 = 15.5242 p1 = 34.5242 c1 = 15.8114 p1 = 35.8114 c1 = 16.1555 p1 = 37.1555 c1 = 16.5529 p1 = 38.5529 c1 = 17 p1 = 40 c1 = 17.4929 p1 = 41.4929 c1 = 18.0278 p1 = 43.0278 c1 = 18.6011 p1 = 44.6011 c1 = 19.2094 p1 = 46.2094 c1 = 19.8494 p1 = 47.8494 c1 = 20.5183 p1 = 49.5183 c1 = 21.2132 p1 = 51.2132 c1 = 21.9317 p1 = 52.9317 c1 = 22.6716 p1 = 54.6716 c1 = 23.4307 p1 = 56.4307 c1 = 24.2074 p1 = 58.2074 c1 = 25 p1 = 60 c = 1×2 cell array {1×3 double} {1×3 double} c1 = 25.8070 p1 = 61.8070 c1 = 26.6271 p1 = 63.6271 a = 20 b1 = 20 c1 = 20.0250 p1 = 41.0250 c1 = 20.0998 p1 = 42.0998 c1 = 20.2237 p1 = 43.2237 c1 = 20.3961 p1 = 44.3961 c1 = 20.6155 p1 = 45.6155 c1 = 20.8806 p1 = 46.8806 c1 = 21.1896 p1 = 48.1896 c1 = 21.5407 p1 = 49...

Assertion failed.

10   Pass
assert(isequal(right_triangle_sides(650),{ [25 312 313] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 325 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 D = 1 2 5 10 13 25 26 50 65 130 325 650 m = 1 n = 12 a = 1 b1 = 324.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = 399.0025 c1 = 200.0025 p1 = 401...

11   Fail
assert(isequal(right_triangle_sides(732),{ [183 244 305] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 366 361 362 363 364 365 366 D = 1 2 3 4 6 12 61 122 183 244 366 732 m = 1 n = 12 a = 1 b1 = 365.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385...

Assertion failed.

12   Fail
assert(isequal(right_triangle_sides(648),{ [162 216 270] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 324 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 D = 1 2 3 4 6 8 9 12 18 24 27 36 54 72 81 108 162 216 324 648 m = 1 n = 20 a = 1 b1 = 323.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = ...

Assertion failed.

13   Pass
assert(isequal(right_triangle_sides(930),{ [155 372 403] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 390 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 Columns 391 through 420 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 Columns 421 through 450 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 Columns 451 through 465 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 D = 1 2 3 5 6 10 15 30 31 62 93 155 186 310 465 930 m = 1 n = 16 a = 1 b1 = 464.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 1...

14   Fail
assert(isequal(right_triangle_sides(876),{ [219 292 365] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 390 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 Columns 391 through 420 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 Columns 421 through 438 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 D = 1 2 3 4 6 12 73 146 219 292 438 876 m = 1 n = 12 a = 1 b1 = 437.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.002...

Assertion failed.

15   Fail
assert(isequal(right_triangle_sides(588),{ [84 245 259] [147 196 245] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 294 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 D = 1 2 3 4 6 7 12 14 21 28 42 49 84 98 147 196 294 588 m = 1 n = 18 a = 1 b1 = 293.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 c1 = 198.0025 p1 = 397.0025 c1 = 199.0025 p1 = 399.0025 c1 = 200.0025 p1 = 401.0025 c1 = 201.0025 p1 = 403.0025 c1 = 202.0025 p1 = 405.0025 c1 = 203.0025 p1 = 407.0025 c1 = 204.0025 p1 = 409.0025 c1 = 205.0024 ...

Assertion failed.

16   Fail
assert(isequal(right_triangle_sides(208),{ [39 80 89] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 104 91 92 93 94 95 96 97 98 99 100 101 102 103 104 D = 1 2 4 8 13 16 26 52 104 208 m = 1 n = 10 a = 1 b1 = 103.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 a = 2 b1 = 103 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 c1 = 66.0303 p1 = 134.0303 c1 = 67.0298 p1 = 136.0298 c1 = 68.0294 p1 = 138.0294 c1 = 69.0290 p1 = 140.0290 c1 = 70.0286 p1 = 142.0286 c1 = 71.0282 p1 = 144.0282 c1 = 72.0278 p1 = 146.0278 c1 = 73.0274 p1 = 148.0274 c1 = 74.0270 p1 = 150.0270 c1 = 75.0267 p1 = 152.0267 c1 = 76.0263 p1 = 154.0263 c1 = 77.0260 p1 = 156.0260 c1 = 78.0256 p1 = 158.0256 c1 = 79.0253 p1 = 160.0253 c1 = 80.0250 p1 = 162.0250 c1 = 81.0247 p1 = 164.0247 c1 = 82.0244 p1 = 166.0244 c1 = 83.0241 p1 = 168.0241 c1 = 84.0238 p1 = 170.0238 c1 = 85.0235 p1 = 172.0235 c1 = 86.0233 p1 = 174.0233 c1 = 87.0230 p1 = 176.0230 c1 = 88.0227 p1 = 178.0227 c1 = 89.0225 p1 = 180.0225 c1 = 90.0222 p1 = 182.0222 c1 = 91.0220 p1 = 184.0220 c1 = 92.0217 p1 = 186.0217 c1 = 93.0215 p1 = 188.0215 c1 = 94.0213 p1 = 190.0213 c1 = 95.0211 p1 = 192.0211 c1 = 96.0208 p1 = 194.0208 c1 = 97.0206 p1 = 196.0206 c1 = 98.0204 p1 = 198.0204 c1 = 99.0202 p1 = 200.0202 c1 = 100.0200 p1 = 202.0200 c1 = 101.0198 p1 = 204.0198 c1 = 102.0196 p1 = 206.0196 c1 = 103.0194 p1 = 208.0194 a = 4 b1 = 102 c1 = 4.1231 p1 = 9.1231 c1 = 4.4721 p1 = 10.4721 c1 = 5 p1 = 12 c1 = 5.6569 p1 = 13.6569 c1 = 6.4031 p1 = 15.4031 c1 = 7.2111 p1 = 17.2111 c1 = 8.0623 p1 = 19.0623 c1 = 8.9443 p1 = 20.9443 c1 = 9.8489 p1 = 22.8489 c1 = 10.7703 p1 = 24.7703 c1 = 11.7047 p1 = 26.7047 c1 = 12.6491 p1 = 28.6491 c1 = 13.6015 p1 = 30.6015 c1 = 14.5602 p1 = 32.5602 c1 = 15.5242 p1 = 34.5242 c1 = 16.4924 p1 = 36.4924 c1 = 17.4642 p1 = 38.4642 c1 = 18.4391 p1 = 40.4391 c1 = 19.4165 p1 = 42.4165 c1 = 20.3961 p1 = 44.3961 c1 = 21.3776 p1 = 46.3776 c1 = 22.3607 p1 = 48.3607 c1 = 23.3452 p1 = 50.3452 c1 = 24.3311 p1 = 52.3311 c1 = 25.3180 p1 = 54.3180 c1 = 26.3059 p1 = 56.3059 c1 = 27.2947 p1 = 58.2947 c1 = 28.2843 p1 = 60.2843 c1 = 29.2746 p1 = 62.2746 c1 = 30.2655 p1 = 64.2655 c1 = 31.2570 p1 = 66.2570 c1 = 32.2490 p1 = 68.2490 c1 = 33.2415 p1 = 70.2415 c...

Output argument "c" (and maybe others) not assigned during call to "right_triangle_sides". Error in Test16 (line 1) assert(isequal(right_triangle_sides(208),{ [39 80 89] }))

17   Fail
assert(isequal(right_triangle_sides(228),{ [57 76 95] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 114 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 D = 1 2 3 4 6 12 19 38 57 76 114 228 m = 1 n = 12 a = 1 b1 = 113.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 a = 2 b1 = 113 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 c1 = 66.0303 p1 = 134.0303 c1 = 67.0298 p1 = 136.0298 c1 = 68.0294 p1 = 138.0294 c1 = 69.0290 p1 = 140.0290 c1 = 70.0286 p1 = 142.0286 c1 = 71.0282 p1 = 144.0282 c1 = 72.0278 p1 = 146.0278 c1 = 73.0274 p1 = 148.0274 c1 = 74.0270 p1 = 150.0270 c1 = 75.0267 p1 = 152.0267 c1 = 76.0263 p1 = 154.0263 c1 = 77.0260 p1 = 156.0260 c1 = 78.0256 p1 = 158.0256 c1 = 79.0253 p1 = 160.0253 c1 = 80.0250 p1 = 162.0250 c1 = 81.0247 p1 = 164.0247 c1 = 82.0244 p1 = 166.0244 c1 = 83.0241 p1 = 168.0241 c1 = 84.0238 p1 = 170.0238 c1 = 85.0235 p1 = 172.0235 c1 = 86.0233 p1 = 174.0233 c1 = 87.0230 p1 = 176.0230 c1 = 88.0227 p1 = 178.0227 c1 = 89.0225 p1 = 180.0225 c1 = 90.0222 p1 = 182.0222 c1 = 91.0220 p1 = 184.0220 c1 = 92.0217 p1 = 186.0217 c1 = 93.0215 p1 = 188.0215 c1 = 94.0213 p1 = 190.0213 c1 = 95.0211 p1 = 192.0211 c1 = 96.0208 p1 = 194.0208 c1 = 97.0206 p1 = 196.0206 c1 = 98.0204 p1 = 198.0204 c1 = 99.0202 p1 = 200.0202 c1 = 100.0200 p1 = 202.0200 c1 = 101.0198 p1 = 204.0198 c1 = 102.0196 p1 = 206.0196 c1 = 103.0194 p1 = 208.0194 c1 = 104.0192 p1 = 210.0192 c1 = 105.0190 p1 = 212.0190 c1 = 106.0189 p1 = 214.0189 c1 = 107.0187 p1 = 216.0187 c1 = 108.0185 p1 = 218.0185 c1 = 109.0183 p1 = 220.0183 c1 = 110.0182 p1 = 222.0182 c1 = 111.0180 p1 = 224.0180 c1 = 112.0179 p1 = 226.0179 c1 = 113.0177 p1 = 228.0177 a = 3 b1 = 112.5000 c1 = 3.1623 p1 = 7.1623 c1 = 3.6056 p1 = 8.6056 c1 = 4.2426 p1 = 10.2426 c1 = 5 p1 = 12 c1 = 5.8310 p1 = 13.8310 c1 = 6.7082 p1 = 15.7082 c1 = 7.6158 p1 = 17.6158 c1 = 8.5440 p1 = 19.5440 c1 = 9.4868 p1 = 21.4868 c1 = 10.4403 p1 = 23.4403 c1 = 11.4018 p1 = 25.4018 c...

Assertion failed.

18   Fail
assert(isequal(right_triangle_sides(312),{ [24 143 145] [78 104 130] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 156 151 152 153 154 155 156 D = 1 2 3 4 6 8 12 13 24 26 39 52 78 104 156 312 m = 1 n = 16 a = 1 b1 = 155.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 a = 2 b1 = 155 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 c1 = 56.0357 p1 = 114.0357 c1 = 57.0351 p1 = 116.0351 c1 = 58.0345 p1 = 118.0345 c1 = 59.0339 p1 = 120.0339 c1 = 60.0333 p1 = 122.0333 c1 = 61.0328 p1 = 124.0328 c1 = 62.0322 p1 = 126.0322 c1 = 63.0317 p1 = 128.0317 c1 = 64.0312 p1 = 130.0312 c1 = 65.0308 p1 = 132.0308 c1 = 66.0303 p1 = 134.0303 c1 = 67.0298 p1 = 136.0298 c1 = 68.0294 p1 = 138.0294 c1 = 69.0290 p1 = 140.0290 c1 = 70.0286 p1 = 142.0286 c1 = 71.0282 p1 = 144.0282 c1 = 72.0278 p1 = 146.0278 c1 = 73.0274 p1 = 148.0274 c1 = 74.0270 p1 = 150.027...

Assertion failed.

19   Fail
assert(isequal(right_triangle_sides(924),{ [42 440 442] [77 420 427] [132 385 407] [198 336 390] [231 308 385] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 390 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 Columns 391 through 420 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 Columns 421 through 450 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 Columns 451 through 462 451 452 453 454 455 456 457 458 459 460 461 462 D = 1 2 3 4 6 7 11 12 14 21 22 28 33 42 44 66 77 84 132 154 231 308 462 924 m = 1 n = 24 a = 1 b1 = 461.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 ...

Assertion failed.

20   Fail
assert(isequal(right_triangle_sides(980),{ [280 294 406] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 390 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 Columns 391 through 420 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 Columns 421 through 450 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 Columns 451 through 480 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 Columns 481 through 490 481 482 483 484 485 486 487 488 489 490 D = 1 2 4 5 7 10 14 20 28 35 49 70 98 140 196 245 490 980 m = 1 n = 18 a = 1 b1 = 489.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = ...

Output argument "c" (and maybe others) not assigned during call to "right_triangle_sides". Error in Test20 (line 1) assert(isequal(right_triangle_sides(980),{ [280 294 406] }))

21   Pass
assert(isequal(right_triangle_sides(112),{ [14 48 50] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 56 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 D = 1 2 4 7 8 14 16 28 56 112 m = 1 n = 10 a = 1 b1 = 55.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 a = 2 b1 = 55 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = 25.0799 p1 = 52.0799 c1 = 26.0768 p1 = 54.0768 c1 = 27.0740 p1 = 56.0740 c1 = 28.0713 p1 = 58.0713 c1 = 29.0689 p1 = 60.0689 c1 = 30.0666 p1 = 62.0666 c1 = 31.0644 p1 = 64.0644 c1 = 32.0624 p1 = 66.0624 c1 = 33.0606 p1 = 68.0606 c1 = 34.0588 p1 = 70.0588 c1 = 35.0571 p1 = 72.0571 c1 = 36.0555 p1 = 74.0555 c1 = 37.0540 p1 = 76.0540 c1 = 38.0526 p1 = 78.0526 c1 = 39.0512 p1 = 80.0512 c1 = 40.0500 p1 = 82.0500 c1 = 41.0488 p1 = 84.0488 c1 = 42.0476 p1 = 86.0476 c1 = 43.0465 p1 = 88.0465 c1 = 44.0454 p1 = 90.0454 c1 = 45.0444 p1 = 92.0444 c1 = 46.0435 p1 = 94.0435 c1 = 47.0425 p1 = 96.0425 c1 = 48.0416 p1 = 98.0416 c1 = 49.0408 p1 = 100.0408 c1 = 50.0400 p1 = 102.0400 c1 = 51.0392 p1 = 104.0392 c1 = 52.0384 p1 = 106.0384 c1 = 53.0377 p1 = 108.0377 c1 = 54.0370 p1 = 110.0370 c1 = 55.0364 p1 = 112.0364 a = 4 b1 = 54 c1 = 4.1231 p1 = 9.1231 c1 = 4.4721 p1 = 10.4721 c1 = 5 p1 = 12 c1 = 5.6569 p1 = 13.6569 c1 = 6.4031 p1 = 15.4031 c1 = 7.2111 p1 = 17.2111 c1 = 8.0623 p1 = 19.0623 c1 = 8.9443 p1 = 20.9443 c1 = 9.8489 p1 = 22.8489 c1 = 10.7703 p1 = 24.7703 c1 = 11.7047 p1 = 26.7047 c1 = 12.6491 p1 = 28.6491 c1 = 13.6015 p1 = 30.6015 c1 = 14.5602 p1 = 32.5602 c1 = 15.5242 p1 = 34.5242 c1 = 16.4924 p1 = 36.4924 c1 = 17.4642 p1 = 38.4642 c1 = 18.4391 p1 = 40.4391 c1 = 19.4165 p1 = 42.4165 c1 = 20.3961 p1 = 44.3961 c1 = 21.3776 p1 = 46.3776 c1 = 22.3607 p1 = 48.3607 c1 = 23.3452 p1 = 50.3452 c1 = 24.3311 p1 = 52.3311 c1 = 25.3180 p1 = 54.3180 c1 = 26.3059 p1 = 56.3059 c1 = 27.2947 p1 = 58.2947 c1 = 28.2843 p1 = 60.2843 c1 = 29.2746 p1 = 62.2746 c1 = 30.2655 p1 = 64.2655 c1 = 31.2570 p1 = 66.2570 c1 = 32.2490 p1 = 68.2490 c1 = 33.2415 p1 = 70.2415 c1 = 34.2345 p1 = 72.2345 c1 = 35.2278 p1 = 74.2278 c1 = 36.2215 p1 = 76.2215 c1 = 37.2156 p1 = 78.2156 c1 = 38.2099 p1 = 80.2099 c1 = 39.2046 p1 = 82.2046 c1 = 40.1995 p1 = 84.1995 c1 = 41.1947 p1 = 86.1947 c1 = 42.1900 p1 = 88.1900 c1 = 43.1856 p1 = 90.1856 c1 = 44.1814 p1 = 92.1814 c1 = 45.1774 p1 = 94.1774 c1 = 46.1736 p1 = 96.1736 c1 = 47.1699 p1 = 98.1699 c1 = 48.1664 p1 = 100.1664 c1 = 49.1630 p1 = 102.1630 c1 = 50.1597 p1 = 104.1597 c1 = 51.1566 p1 = 106.1566 c1 = 52.1536 p1 = 108.1536 c1 = 53.1507 p1 = 110.1507 c1 = 54.1479 p1 = 112.1479 a = 7 b1 = 52.5000 c1 = 7.0711 p1 = 15.0711 c1 = 7.2801 p1 = 16.2801 c1 = 7.6158 p1 = 17.6158 c1 = 8.0623 p1 = 19.0623 c1 = 8.6023 p1 = 20.6023 c1 = 9.2195 p1 = 22.2195 c1 = 9.8995 p1 = 23.8995 c1 = 10.6301 p1 = 25.6301 c1 = 11.4018 p1 = 27.4018 c1 = 12.2066 p1 = 29.2066 c1 = 13.0384 p1 = 31.0384 c1 = 13.8924 p1 = 32.8924 c1 = 14.7648 p1 = 34.7648 c1 = 15.6525 p1 = 36.6525 c1 = 16.5529 p1 = 38.5529 c1 = 17.4642 p1 = 40.4642 c1 = 18.3848 p1 = 42.3848 c1 = 19.3132 p1 = 44.3132 c1 = 20.2485 p1 = 46.2485 c1 = 21.1896 p1 = 48.1896 c1 = 22.1359 p1 = 50.1359 c1 = 23.0868 p1 = 52.0868 c1 = 24.0416 p1 = 54.0416 c1 = 25 p1 = 56 c1 = 25.9615 p1 = 57.9615 c1 = 26.9258 p1 = 59.9258 c1 = 27.8927 p1 = 61.8927 c1 = 28.8617 p1 = 63.8617 c1 = 29.8329 p1 = 65.8329 c1 = 30.8058 p1 = 67.8058 c1 = 31.7805 p1 = 69.7805 c1 = 32.7567 p1 = 71.7567 c1 = 33.7343 p1 = 73.7343 c1 = 34.7131 p1 = 75.7131 c1 = 35.6931 p1 = 77.6931 c1 = 36.6742 p1 = 79.6742 c1 = 37.6563 p1 = 81.6563 c1 = 38.6394 p1 = 83.6394 c1 = 39.6232 p1 = 85.6232 c1 = 40.6079 p1 = 87.6079 c1 = 41.5933 p1 = 89.5933 c1 = 42.5793 p1 = 91.5793 c1 = 43.5660 p1 = 93.5660 c1 = 44.5533 p1 = 95.5533 c1 = 45.5412 p1 = 97.5412 c1 = 46.5296 p1 = 99.5296 c1 = 47.5184 p1 = 101.5184 c1 = 48.5077 p1 = 103.5077 c1 = 49.4975 p1 = 105.4975 c1 = 50.4876 p1 = 107.4876 c1 = 51.4782 p1 = 109.4782 c1 = 52.4690 p1 = 111.4690 a = 8 b1 = 52 c1 = 8.0623 p1 = 17.0623 c1 = 8.2462 p1 = 18.2462 c1 = 8.5440 p1 = 19.5440 c1 = 8.9443 p1 = 20.9443 c1 = 9.4340 p1 = 22.4340 c1 = 10 p1 = 24 c1 = 10.6301 p1 = 25.6301 c1 = 11.3137 p1 = 27.3137 c1 = 12.0416 p1 = 29.0416 c1 = 12.8062 p1 = 30.8062 c1 = 13.6015 p1 = 32.6015 c1 = 14.4222 p1 = 34.4222 c1 = 15.2643 p1 = 36.2643 c1 = 16.1245 p1 = 38.1245 c1 = 17 p1 = 40 c1 = 17.8885 p1 = 41.8885 c1 = 18.7883 p1 = 43.7883 c1 = 19.6977 p1 = 45.6977 c1 = 20.6155 p1 = 47.6155 c1 = 21.5407 p1 = 49.5407 c1 = 22.4722 p1 = 51.4722 c1 = 23.4094 p1 = 53.4094 c1 = 24.3516 p1 = 55.3516 c1 = 25.2982 p1 = 57.2982 c1 = 26.2488 p1 = 59.2488 c1 = 27.2029 p1 = 61.2029 c1 = 28.1603 p1 = 63.1603 c1 = 29.1204 p1 = 65.1204 c1 = 30.0832 p1 = 67.0832 c1 = 31.0483 p1 = 69.0483 c1 = 32.0156 p1 = 71.0156 c1...

22   Pass
assert(isequal(right_triangle_sides(30),{ [5 12 13] }))

K = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 D = 1 2 3 5 6 10 15 30 m = 1 n = 8 a = 1 b1 = 14.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 a = 2 b1 = 14 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 a = 3 b1 = 13.5000 c1 = 3.1623 p1 = 7.1623 c1 = 3.6056 p1 = 8.6056 c1 = 4.2426 p1 = 10.2426 c1 = 5 p1 = 12 c1 = 5.8310 p1 = 13.8310 c1 = 6.7082 p1 = 15.7082 c1 = 7.6158 p1 = 17.6158 c1 = 8.5440 p1 = 19.5440 c1 = 9.4868 p1 = 21.4868 c1 = 10.4403 p1 = 23.4403 c1 = 11.4018 p1 = 25.4018 c1 = 12.3693 p1 = 27.3693 c1 = 13.3417 p1 = 29.3417 a = 5 b1 = 12.5000 c1 = 5.0990 p1 = 11.0990 c1 = 5.3852 p1 = 12.3852 c1 = 5.8310 p1 = 13.8310 c1 = 6.4031 p1 = 15.4031 c1 = 7.0711 p1 = 17.0711 c1 = 7.8102 p1 = 18.8102 c1 = 8.6023 p1 = 20.6023 c1 = 9.4340 p1 = 22.4340 c1 = 10.2956 p1 = 24.2956 c1 = 11.1803 p1 = 26.1803 c1 = 12.0830 p1 = 28.0830 c1 = 13 p1 = 30 c = 1×1 cell array {1×3 double} a = 6 b1 = 12 c1 = 6.0828 p1 = 13.0828 c1 = 6.3246 p1 = 14.3246 c1 = 6.7082 p1 = 15.7082 c1 = 7.2111 p1 = 17.2111 c1 = 7.8102 p1 = 18.8102 c1 = 8.4853 p1 = 20.4853 c1 = 9.2195 p1 = 22.2195 c1 = 10 p1 = 24 c1 = 10.8167 p1 = 25.8167 c1 = 11.6619 p1 = 27.6619 c1 = 12.5300 p1 = 29.5300 c1 = 13.4164 p1 = 31.4164 a = 10 b1 = 10 c1 = 10.0499 p1 = 21.0499 c1 = 10.1980 p1 = 22.1980 c1 = 10.4403 p1 = 23.4403 c1 = 10.7703 p1 = 24.7703 c1 = 11.1803 p1 = 26.1803 c1 = 11.6619 p1 = 27.6619 c1 = 12.2066 p1 = 29.2066 c1 = 12.8062 p1 = 30.8062 c1 = 13.4536 p1 = 32.4536 c1 = 14.1421 p1 = 34.1421 a = 15 b1 = 7.5000 c1 = 15.0333 p1 = 31.0333 c1 = 15.1327 p1 = 32.1327 c1 = 15.2971 p1 = 33.2971 c1 = 15.5242 p1 = 34.5242 c1 = 15.8114 p1 = 35.8114 c1 = 16.1555 p1 = 37.1555 c1 = 16.5529 p1 = 38.5529 a = 30 b1 = 0

23   Fail
assert(isequal(right_triangle_sides(680),{ [102 280 298] [136 255 289] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 340 331 332 333 334 335 336 337 338 339 340 D = 1 2 4 5 8 10 17 20 34 40 68 85 136 170 340 680 m = 1 n = 16 a = 1 b1 = 339.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c...

Assertion failed.

24   Fail
assert(isequal(right_triangle_sides(396),{ [33 180 183] [72 154 170] [99 132 165] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 198 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 D = 1 2 3 4 6 9 11 12 18 22 33 36 44 66 99 132 198 396 m = 1 n = 18 a = 1 b1 = 197.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p1 = 339.0030 c1 = 170.0029 p1 = 341.0029 c1 = 171.0029 p1 = 343.0029 c1 = 172.0029 p1 = 345.0029 c1 = 173.0029 p1 = 347.0029 c1 = 174.0029 p1 = 349.0029 c1 = 175.0029 p1 = 351.0029 c1 = 176.0028 p1 = 353.0028 c1 = 177.0028 p1 = 355.0028 c1 = 178.0028 p1 = 357.0028 c1 = 179.0028 p1 = 359.0028 c1 = 180.0028 p1 = 361.0028 c1 = 181.0028 p1 = 363.0028 c1 = 182.0027 p1 = 365.0027 c1 = 183.0027 p1 = 367.0027 c1 = 184.0027 p1 = 369.0027 c1 = 185.0027 p1 = 371.0027 c1 = 186.0027 p1 = 373.0027 c1 = 187.0027 p1 = 375.0027 c1 = 188.0027 p1 = 377.0027 c1 = 189.0026 p1 = 379.0026 c1 = 190.0026 p1 = 381.0026 c1 = 191.0026 p1 = 383.0026 c1 = 192.0026 p1 = 385.0026 c1 = 193.0026 p1 = 387.0026 c1 = 194.0026 p1 = 389.0026 c1 = 195.0026 p1 = 391.0026 c1 = 196.0026 p1 = 393.0026 c1 = 197.0025 p1 = 395.0025 a = 2 b1 = 197 c1 = 2.2361 p1 = 5.2361 c1 = 2.8284 p1 = 6.8284 c1 = 3.6056 p1 = 8.6056 c1 = 4.4721 p1 = 10.4721 c1 = 5.3852 p1 = 12.3852 c1 = 6.3246 p1 = 14.3246 c1 = 7.2801 p1 = 16.2801 c1 = 8.2462 p1 = 18.2462 c1 = 9.2195 p1 = 20.2195 c1 = 10.1980 p1 = 22.1980 c1 = 11.1803 p1 = 24.1803 c1 = 12.1655 p1 = 26.1655 c1 = 13.1529 p1 = 28.1529 c1 = 14.1421 p1 = 30.1421 c1 = 15.1327 p1 = 32.1327 c1 = 16.1245 p1 = 34.1245 c1 = 17.1172 p1 = 36.1172 c1 = 18.1108 p1 = 38.1108 c1 = 19.1050 p1 = 40.1050 c1 = 20.0998 p1 = 42.0998 c1 = 21.0950 p1 = 44.0950 c1 = 22.0907 p1 = 46.0907 c1 = 23.0868 p1 = 48.0868 c1 = 24.0832 p1 = 50.0832 c1 = ...

Assertion failed.

25   Fail
assert(isequal(right_triangle_sides(988),{ [266 312 410] }))

K = Columns 1 through 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Columns 31 through 60 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 Columns 61 through 90 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 Columns 91 through 120 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 Columns 121 through 150 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 Columns 151 through 180 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 Columns 181 through 210 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 Columns 211 through 240 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 Columns 241 through 270 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 Columns 271 through 300 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 Columns 301 through 330 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 Columns 331 through 360 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 Columns 361 through 390 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 Columns 391 through 420 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 Columns 421 through 450 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 Columns 451 through 480 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 Columns 481 through 494 481 482 483 484 485 486 487 488 489 490 491 492 493 494 D = 1 2 4 13 19 26 38 52 76 247 494 988 m = 1 n = 12 a = 1 b1 = 493.5000 c1 = 1.4142 p1 = 3.4142 c1 = 2.2361 p1 = 5.2361 c1 = 3.1623 p1 = 7.1623 c1 = 4.1231 p1 = 9.1231 c1 = 5.0990 p1 = 11.0990 c1 = 6.0828 p1 = 13.0828 c1 = 7.0711 p1 = 15.0711 c1 = 8.0623 p1 = 17.0623 c1 = 9.0554 p1 = 19.0554 c1 = 10.0499 p1 = 21.0499 c1 = 11.0454 p1 = 23.0454 c1 = 12.0416 p1 = 25.0416 c1 = 13.0384 p1 = 27.0384 c1 = 14.0357 p1 = 29.0357 c1 = 15.0333 p1 = 31.0333 c1 = 16.0312 p1 = 33.0312 c1 = 17.0294 p1 = 35.0294 c1 = 18.0278 p1 = 37.0278 c1 = 19.0263 p1 = 39.0263 c1 = 20.0250 p1 = 41.0250 c1 = 21.0238 p1 = 43.0238 c1 = 22.0227 p1 = 45.0227 c1 = 23.0217 p1 = 47.0217 c1 = 24.0208 p1 = 49.0208 c1 = 25.0200 p1 = 51.0200 c1 = 26.0192 p1 = 53.0192 c1 = 27.0185 p1 = 55.0185 c1 = 28.0179 p1 = 57.0179 c1 = 29.0172 p1 = 59.0172 c1 = 30.0167 p1 = 61.0167 c1 = 31.0161 p1 = 63.0161 c1 = 32.0156 p1 = 65.0156 c1 = 33.0151 p1 = 67.0151 c1 = 34.0147 p1 = 69.0147 c1 = 35.0143 p1 = 71.0143 c1 = 36.0139 p1 = 73.0139 c1 = 37.0135 p1 = 75.0135 c1 = 38.0132 p1 = 77.0132 c1 = 39.0128 p1 = 79.0128 c1 = 40.0125 p1 = 81.0125 c1 = 41.0122 p1 = 83.0122 c1 = 42.0119 p1 = 85.0119 c1 = 43.0116 p1 = 87.0116 c1 = 44.0114 p1 = 89.0114 c1 = 45.0111 p1 = 91.0111 c1 = 46.0109 p1 = 93.0109 c1 = 47.0106 p1 = 95.0106 c1 = 48.0104 p1 = 97.0104 c1 = 49.0102 p1 = 99.0102 c1 = 50.0100 p1 = 101.0100 c1 = 51.0098 p1 = 103.0098 c1 = 52.0096 p1 = 105.0096 c1 = 53.0094 p1 = 107.0094 c1 = 54.0093 p1 = 109.0093 c1 = 55.0091 p1 = 111.0091 c1 = 56.0089 p1 = 113.0089 c1 = 57.0088 p1 = 115.0088 c1 = 58.0086 p1 = 117.0086 c1 = 59.0085 p1 = 119.0085 c1 = 60.0083 p1 = 121.0083 c1 = 61.0082 p1 = 123.0082 c1 = 62.0081 p1 = 125.0081 c1 = 63.0079 p1 = 127.0079 c1 = 64.0078 p1 = 129.0078 c1 = 65.0077 p1 = 131.0077 c1 = 66.0076 p1 = 133.0076 c1 = 67.0075 p1 = 135.0075 c1 = 68.0074 p1 = 137.0074 c1 = 69.0072 p1 = 139.0072 c1 = 70.0071 p1 = 141.0071 c1 = 71.0070 p1 = 143.0070 c1 = 72.0069 p1 = 145.0069 c1 = 73.0068 p1 = 147.0068 c1 = 74.0068 p1 = 149.0068 c1 = 75.0067 p1 = 151.0067 c1 = 76.0066 p1 = 153.0066 c1 = 77.0065 p1 = 155.0065 c1 = 78.0064 p1 = 157.0064 c1 = 79.0063 p1 = 159.0063 c1 = 80.0062 p1 = 161.0062 c1 = 81.0062 p1 = 163.0062 c1 = 82.0061 p1 = 165.0061 c1 = 83.0060 p1 = 167.0060 c1 = 84.0060 p1 = 169.0060 c1 = 85.0059 p1 = 171.0059 c1 = 86.0058 p1 = 173.0058 c1 = 87.0057 p1 = 175.0057 c1 = 88.0057 p1 = 177.0057 c1 = 89.0056 p1 = 179.0056 c1 = 90.0056 p1 = 181.0056 c1 = 91.0055 p1 = 183.0055 c1 = 92.0054 p1 = 185.0054 c1 = 93.0054 p1 = 187.0054 c1 = 94.0053 p1 = 189.0053 c1 = 95.0053 p1 = 191.0053 c1 = 96.0052 p1 = 193.0052 c1 = 97.0052 p1 = 195.0052 c1 = 98.0051 p1 = 197.0051 c1 = 99.0051 p1 = 199.0051 c1 = 100.0050 p1 = 201.0050 c1 = 101.0050 p1 = 203.0050 c1 = 102.0049 p1 = 205.0049 c1 = 103.0049 p1 = 207.0049 c1 = 104.0048 p1 = 209.0048 c1 = 105.0048 p1 = 211.0048 c1 = 106.0047 p1 = 213.0047 c1 = 107.0047 p1 = 215.0047 c1 = 108.0046 p1 = 217.0046 c1 = 109.0046 p1 = 219.0046 c1 = 110.0045 p1 = 221.0045 c1 = 111.0045 p1 = 223.0045 c1 = 112.0045 p1 = 225.0045 c1 = 113.0044 p1 = 227.0044 c1 = 114.0044 p1 = 229.0044 c1 = 115.0043 p1 = 231.0043 c1 = 116.0043 p1 = 233.0043 c1 = 117.0043 p1 = 235.0043 c1 = 118.0042 p1 = 237.0042 c1 = 119.0042 p1 = 239.0042 c1 = 120.0042 p1 = 241.0042 c1 = 121.0041 p1 = 243.0041 c1 = 122.0041 p1 = 245.0041 c1 = 123.0041 p1 = 247.0041 c1 = 124.0040 p1 = 249.0040 c1 = 125.0040 p1 = 251.0040 c1 = 126.0040 p1 = 253.0040 c1 = 127.0039 p1 = 255.0039 c1 = 128.0039 p1 = 257.0039 c1 = 129.0039 p1 = 259.0039 c1 = 130.0038 p1 = 261.0038 c1 = 131.0038 p1 = 263.0038 c1 = 132.0038 p1 = 265.0038 c1 = 133.0038 p1 = 267.0038 c1 = 134.0037 p1 = 269.0037 c1 = 135.0037 p1 = 271.0037 c1 = 136.0037 p1 = 273.0037 c1 = 137.0036 p1 = 275.0036 c1 = 138.0036 p1 = 277.0036 c1 = 139.0036 p1 = 279.0036 c1 = 140.0036 p1 = 281.0036 c1 = 141.0035 p1 = 283.0035 c1 = 142.0035 p1 = 285.0035 c1 = 143.0035 p1 = 287.0035 c1 = 144.0035 p1 = 289.0035 c1 = 145.0034 p1 = 291.0034 c1 = 146.0034 p1 = 293.0034 c1 = 147.0034 p1 = 295.0034 c1 = 148.0034 p1 = 297.0034 c1 = 149.0034 p1 = 299.0034 c1 = 150.0033 p1 = 301.0033 c1 = 151.0033 p1 = 303.0033 c1 = 152.0033 p1 = 305.0033 c1 = 153.0033 p1 = 307.0033 c1 = 154.0032 p1 = 309.0032 c1 = 155.0032 p1 = 311.0032 c1 = 156.0032 p1 = 313.0032 c1 = 157.0032 p1 = 315.0032 c1 = 158.0032 p1 = 317.0032 c1 = 159.0031 p1 = 319.0031 c1 = 160.0031 p1 = 321.0031 c1 = 161.0031 p1 = 323.0031 c1 = 162.0031 p1 = 325.0031 c1 = 163.0031 p1 = 327.0031 c1 = 164.0030 p1 = 329.0030 c1 = 165.0030 p1 = 331.0030 c1 = 166.0030 p1 = 333.0030 c1 = 167.0030 p1 = 335.0030 c1 = 168.0030 p1 = 337.0030 c1 = 169.0030 p...

Output argument "c" (and maybe others) not assigned during call to "right_triangle_sides". Error in Test25 (line 1) assert(isequal(right_triangle_sides(988),{ [266 312 410] }))

Suggested Problems

More from this Author56