Cody

# Problem 44319. Write c^3 as sum of two squares a^2+b^2

Solution 1292682

Submitted on 17 Oct 2017 by Reggie Wilcox
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   Pass
c = 1; y_correct = []; assert(isequal(sumoftwosquares(c),y_correct))

y = []

2   Pass
c = 5; y_correct = [2 11; 5 10]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 11.1355 b = 11 y = 2 11 b = 10.7703 b = 10.4403 b = 10 y = 2 11 5 10 b = 9.4340 b = 8.7178

3   Pass
c = 6; y_correct = []; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 14.6629 b = 14.5602 b = 14.3875 b = 14.1421 b = 13.8203 b = 13.4164 b = 12.9228 b = 12.3288 b = 11.6190 b = 10.7703

4   Pass
c = 10; y_correct = [10 30; 18 26]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 31.6070 b = 31.5595 b = 31.4802 b = 31.3688 b = 31.2250 b = 31.0483 b = 30.8383 b = 30.5941 b = 30.3150 b = 30 y = 10 30 b = 29.6479 b = 29.2575 b = 28.8271 b = 28.3549 b = 27.8388 b = 27.2764 b = 26.6646 b = 26 y = 10 30 18 26 b = 25.2784 b = 24.4949 b = 23.6432 b = 22.7156

5   Pass
c = 20; y_correct = [16 88; 40 80]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 89.4371 b = 89.4204 b = 89.3924 b = 89.3532 b = 89.3029 b = 89.2412 b = 89.1684 b = 89.0842 b = 88.9888 b = 88.8819 b = 88.7637 b = 88.6341 b = 88.4929 b = 88.3403 b = 88.1760 b = 88 y = 16 88 b = 87.8123 b = 87.6128 b = 87.4014 b = 87.1780 b = 86.9425 b = 86.6949 b = 86.4349 b = 86.1626 b = 85.8778 b = 85.5804 b = 85.2702 b = 84.9470 b = 84.6109 b = 84.2615 b = 83.8987 b = 83.5225 b = 83.1324 b = 82.7285 b = 82.3104 b = 81.8780 b = 81.4310 b = 80.9691 b = 80.4922 b = 80 y = 16 88 40 80 b = 79.4921 b = 78.9683 b = 78.4283 b = 77.8717 b = 77.2981 b = 76.7072 b = 76.0986 b = 75.4718 b = 74.8265 b = 74.1620 b = 73.4779 b = 72.7736 b = 72.0486 b = 71.3022 b = 70.5337 b = 69.7424 b = 68.9275 b = 68.0882 b = 67.2235 b = 66.3325 b = 65.4141 b = 64.4670 b = 63.4902

6   Pass
c = 24; y_correct = []; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 117.5713 b = 117.5585 b = 117.5372 b = 117.5074 b = 117.4691 b = 117.4223 b = 117.3669 b = 117.3030 b = 117.2305 b = 117.1495 b = 117.0598 b = 116.9615 b = 116.8546 b = 116.7390 b = 116.6148 b = 116.4818 b = 116.3400 b = 116.1895 b = 116.0302 b = 115.8620 b = 115.6849 b = 115.4989 b = 115.3039 b = 115.1000 b = 114.8869 b = 114.6647 b = 114.4334 b = 114.1928 b = 113.9430 b = 113.6838 b = 113.4152 b = 113.1371 b = 112.8495 b = 112.5522 b = 112.2453 b = 111.9285 b = 111.6020 b = 111.2654 b = 110.9189 b = 110.5622 b = 110.1953 b = 109.8180 b = 109.4303 b = 109.0321 b = 108.6232 b = 108.2035 b = 107.7729 b = 107.3313 b = 106.8784 b = 106.4143 b = 105.9387 b = 105.4514 b = 104.9524 b = 104.4414 b = 103.9182 b = 103.3828 b = 102.8348 b = 102.2741 b = 101.7005 b = 101.1138 b = 100.5137 b = 99.8999 b = 99.2724 b = 98.6306 b = 97.9745 b = 97.3036 b = 96.6178 b = 95.9166 b = 95.1998 b = 94.4669 b = 93.7177 b = 92.9516 b = 92.1683 b = 91.3674 b = 90.5483 b = 89.7106 b = 88.8538 b = 87.9773 b = 87.0804 b = 86.1626 b = 85.2232 b = 84.2615 b = 83.2766

7   Pass
c = 40; y_correct = [80 240; 144 208]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 252.9802 b = 252.9743 b = 252.9644 b = 252.9506 b = 252.9328 b = 252.9111 b = 252.8853 b = 252.8557 b = 252.8221 b = 252.7845 b = 252.7430 b = 252.6974 b = 252.6480 b = 252.5945 b = 252.5371 b = 252.4757 b = 252.4104 b = 252.3410 b = 252.2677 b = 252.1904 b = 252.1091 b = 252.0238 b = 251.9345 b = 251.8412 b = 251.7439 b = 251.6426 b = 251.5373 b = 251.4279 b = 251.3145 b = 251.1971 b = 251.0757 b = 250.9502 b = 250.8207 b = 250.6871 b = 250.5494 b = 250.4077 b = 250.2619 b = 250.1120 b = 249.9580 b = 249.7999 b = 249.6377 b = 249.4714 b = 249.3010 b = 249.1265 b = 248.9478 b = 248.7649 b = 248.5780 b = 248.3868 b = 248.1915 b = 247.9919 b = 247.7882 b = 247.5803 b = 247.3681 b = 247.1518 b = 246.9312 b = 246.7063 b = 246.4772 b = 246.2438 b = 246.0061 b = 245.7641 b = 245.5178 b = 245.2672 b = 245.0122 b = 244.7529 b = 244.4893 b = 244.2212 b = 243.9488 b = 243.6719 b = 243.3906 b = 243.1049 b = 242.8147 b = 242.5201 b = 242.2210 b = 241.9173 b = 241.6092 b = 241.2965 b = 240.9793 b = 240.6574 b = 240.3310 b = 240 y = 80 240 b = 239.6643 b = 239.3240 b = 238.9791 b = 238.6294 b = 238.2751 b = 237.9160 b = 237.5521 b = 237.1835 b = 236.8101 b = 236.4318 b = 236.0487 b = 235.6608 b = 235.2679 b = 234.8702 b = 234.4675 b = 234.0598 b = 233.6472 b = 233.2295 b = 232.8068 b = 232.3790 b = 231.9461 b = 231.5081 b = 231.0649 b = 230.6166 b = 230.1630 b = 229.7042 b = 229.2400 b = 228.7706 b = 228.2959 b = 227.8157 b = 227.3302 b = 226.8392 b = 226.3427 b = 225.8407 b = 225.3331 b = 224.8199 b = 224.3011 b = 223.7767 b = 223.2465 b = 222.7106 b = 222.1689 b = 221.6213 b = 221.0679 b = 220.5085 b = 219.9432 b = 219.3718 b = 218.7944 b = 218.2109 b = 217.6212 b = 217.0253 b = 216.4232 b = 215.8147 b = 215.1999 b = 214.5787 b = 213.9509 b = 213.3167 b = 212.6758 b = 212.0283 b = 211.3741 b = 210.7131 b = 210.0452 b = 209.3705 b = 208.6888 b = 208 y = 80 240 144 208 b = 207.3041 b = 206.6011 b = 205.8907 b = 205.1731 b = 204.4480 b = 203.7155 b = 202.9754 b = 202.2276 b = 201.4721 b = 200.7087 b = 199.9375 b = 199.1582 b = 198.3709 b = 197.5753 b = 196.7714 b = 195.9592 b = 195.1384 b = 194.3090 b = 193.4709 b = 192.6240 b = 191.7681 b = 190.9031 b = 190.0289 b = 189.1454 b = 188.2525 b = 187.3499 b = 186.4377 b = 185.5155 b = 184.5833 b = 183.6410 b = 182.6883 b = 181.7251 b = 180.7512 b = 179.7665

8   Pass
c = 65; y_correct = [7 524; 65 520; 140 505; 191 488; 208 481; 260 455; 320 415; 364 377]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 524.0458 b = 524.0429 b = 524.0382 b = 524.0315 b = 524.0229 b = 524.0124 b = 524 y = 7 524 b = 523.9857 b = 523.9695 b = 523.9513 b = 523.9313 b = 523.9093 b = 523.8855 b = 523.8597 b = 523.8320 b = 523.8024 b = 523.7709 b = 523.7375 b = 523.7022 b = 523.6650 b = 523.6258 b = 523.5848 b = 523.5418 b = 523.4969 b = 523.4501 b = 523.4014 b = 523.3507 b = 523.2982 b = 523.2437 b = 523.1873 b = 523.1290 b = 523.0688 b = 523.0067 b = 522.9426 b = 522.8767 b = 522.8088 b = 522.7389 b = 522.6672 b = 522.5935 b = 522.5179 b = 522.4404 b = 522.3610 b = 522.2796 b = 522.1963 b = 522.1111 b = 522.0239 b = 521.9349 b = 521.8438 b = 521.7509 b = 521.6560 b = 521.5592 b = 521.4604 b = 521.3598 b = 521.2571 b = 521.1526 b = 521.0461 b = 520.9376 b = 520.8272 b = 520.7149 b = 520.6006 b = 520.4844 b = 520.3662 b = 520.2461 b = 520.1240 b = 520 y = 7 524 65 520 b = 519.8740 b = 519.7461 b = 519.6162 b = 519.4844 b = 519.3506 b = 519.2148 b = 519.0771 b = 518.9374 b = 518.7957 b = 518.6521 b = 518.5065 b = 518.3589 b = 518.2094 b = 518.0579 b = 517.9044 b = 517.7490 b = 517.5915 b = 517.4321 b = 517.2707 b = 517.1073 b = 516.9420 b = 516.7746 b = 516.6053 b = 516.4339 b = 516.2606 b = 516.0853 b = 515.9079 b = 515.7286 b = 515.5473 b = 515.3639 b = 515.1786 b = 514.9913 b = 514.8019 b = 514.6105 b = 514.4171 b = 514.2217 b = 514.0243 b = 513.8249 b = 513.6234 b = 513.4199 b = 513.2144 b = 513.0068 b = 512.7972 b = 512.5856 b = 512.3719 b = 512.1562 b = 511.9385 b = 511.7187 b = 511.4968 b = 511.2729 b = 511.0470 b = 510.8190 b = 510.5889 b = 510.3567 b = 510.1225 b = 509.8863 b = 509.6479 b = 509.4075 b = 509.1650 b = 508.9204 b = 508.6738 b = 508.4250 b = 508.1742 b = 507.9213 b = 507.6662 b = 507.4091 b = 507.1499 b = 506.8885 b = 506.6251 b = 506.3596 b = 506.0919 b = 505.8221 b = 505.5502 b = 505.2762 b = 505 y = 7 524 65 520 140 505 b = 504.7217 b = 504.4413 b = 504.1587 b = 503.8740 b = 503.5871 b = 503.2981 b = 503.0070 b = 502.7136 b = 502.4182 b = 502.1205 b = 501.8207 b = 501.5187 b = 501.2145 b = 500.9082 b = 500.5996 b = 500.2889 b = 499.9760 b = 499.6609 b = 499.3436 b = 499.0240 b = 498.7023 b = 498.3784 b = 498.0522 b = 497.7238 b = 497.3932 b = 497.0604 b = 496.7253 b = 496.3880 b = 496.0484 b = 495.7066 b = 495.3625 b = 495.0162 b = 494.6676 b = 494.3167 b = 493.9636 b = 493.6081 b = 493.2504 b = 492.8905 b = 492.5282 b = 492.1636 b = 491.7967 b = 491.4275 b = 491.0560 b = 490.6822 b = 490.3060 b = 489.9275 b = 489.5467 b = 489.1636 b = 488.7781 b = 488.3902 b = 488 y = 7 524 65 520 140 505 191 488 b = 487.6074 b = 487.2125 b = 486.8152 b = 486.4155 b = 486.0134 b = 485.6089 b = 485.2020 b = 484.7927 b = 484.3810 b = 483.9669 b = 483.5504 b = 483.1315 b = 482.7101 b = 482.2862 b = 481.8599 b = 481.4312 b = 481 y = 7 524 65 520 140 505 191 488 208 481 b = 480.5663 b = 480.1302 b = 479.6916 b = 479.2505 b = 478.8069 b = 478.3607 b = 477.9121 b = 477.4610 b = 477.0073 b = 476.5512 b = 476.0924 b = 475.6312 b = 475.1673 b = 474.7010 b = 474.2320 b = 473.7605 b = 473.2864 b = 472.8097 b = 472.3304 b = 471.8485 b = 471.3640 b = 470.8768 b = 470.3871 b = 469.8947 b = 469.3996 b = 468.9019 b = 468.4015 b = 467.8985 b = 467.3928 b = 466.8844 b = 466.3732 b = 465.8594 b = 465.3429 b = 464.8236 b = 464.3016 b = 463.7769 b = 463.2494 b = 462.7191 b = 462.1861 b = 461.6503 b = 461.1117 b = 460.5703 b = 460.0261 b = 459.4791 b = 458.9292 b = 458.3765 b = 457.8209 b = 457.2625 b = 456.7012 b = 456.1370 b = 455.5700 b = 455 y = 7 524 65 520 140 505 191 488 208 481 260 455 b = 454.4271 b = 453.8513 b = 453.2725 b = 452.6908 b = 452.1062 b = 451.5185 b = 450.9279 b = 450.3343 b = 449.7377 b = 449.1381 b = 448.5354 b = 447.9297 b = 447.3209 b = 446.7091 b = 446.0942 b = 445.4761 b = 444.8550 b = 444.2308 b = 443.6034 b = 442.9729 b = 442.3392 b = 441.7024 b = 441.0624 b = 440.4191 b = 439.7727 b = 439.1230 b = 438.4701 b = 437.8139 b = 437.1544 b = 436.4917 b = 435.8257 b = 435.1563 b = 434.4836 b = 433.8076 b = 433.1282 b = 432.4454 b = 431.7592 b = 431.0696 b = 430.3766 b = 429.6801 b = 428.9802 b = 428.2768 b = 427.5699 b = 426.8595 b = 426.1455 b = 425.4280 b = 424.7070 b = 423.9823 b = 423.2541 b = 422.5222 b = 421.7867 b = 421.0475 b = 420.3047 b = 419.5581 b = 418.8078 b = 418.0538 b = 417.2961 b = 416.5345 b = 415.7692 b = 415 y = 7 524 65 520 140 505 191 488 208 481 260 455 320 415 b = 414.2270 b = 413.4501 b = 412.6694 b = 411.8847 b = 411.0961 b = 410.3035 b = 409.5070 b = 408.7065 b = 407.9019 b = 407.0934 b = 406.2807 b = 405.4639 b = 404.6431 b = 403.8180 b = 402.9888 b = 402.1554 b = 401.3178 b = 400.4760 b = 399.6298 b = 398.7794 b = 397.9246 b = 397.0655 b = 396.2020 b = 395.3340 b = 394.4617 b = 393.5848 b = 392.7035 b = 391.8176 b = 390.9271 b = 390.0320 b = 389.1324 b = 388.2280 b = 387.3190 b = 386.4052 b = 385.4867 b = 384.5634 b = 383.6352 b = 382.7022 b = 381.7643 b = 380.8215 b = 379.8737 b = 378.9208 b = 377.9630 b = 377 y = 7 524 65 520 140 505 191 488 208 481 260 455 320 415 364 377 b = 376.0319 b = 375.0587 b = 374.0802 b = 373.0965 b = 372.1075 b = 371.1132

9   Pass
c = 100; y_correct = [280 960; 352 936; 600 800]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 999.9995 b = 999.9980 b = 999.9955 b = 999.9920 b = 999.9875 b = 999.9820 b = 999.9755 b = 999.9680 b = 999.9595 b = 999.9500 b = 999.9395 b = 999.9280 b = 999.9155 b = 999.9020 b = 999.8875 b = 999.8720 b = 999.8555 b = 999.8380 b = 999.8195 b = 999.8000 b = 999.7795 b = 999.7580 b = 999.7355 b = 999.7120 b = 999.6875 b = 999.6619 b = 999.6354 b = 999.6079 b = 999.5794 b = 999.5499 b = 999.5194 b = 999.4879 b = 999.4554 b = 999.4218 b = 999.3873 b = 999.3518 b = 999.3153 b = 999.2777 b = 999.2392 b = 999.1997 b = 999.1591 b = 999.1176 b = 999.0751 b = 999.0315 b = 998.9870 b = 998.9414 b = 998.8949 b = 998.8473 b = 998.7988 b = 998.7492 b = 998.6987 b = 998.6471 b = 998.5945 b = 998.5409 b = 998.4864 b = 998.4308 b = 998.3742 b = 998.3166 b = 998.2580 b = 998.1984 b = 998.1378 b = 998.0761 b = 998.0135 b = 997.9499 b = 997.8853 b = 997.8196 b = 997.7530 b = 997.6853 b = 997.6167 b = 997.5470 b = 997.4763 b = 997.4046 b = 997.3319 b = 997.2582 b = 997.1835 b = 997.1078 b = 997.0311 b = 996.9534 b = 996.8746 b = 996.7949 b = 996.7141 b = 996.6323 b = 996.5495 b = 996.4658 b = 996.3810 b = 996.2951 b = 996.2083 b = 996.1205 b = 996.0316 b = 995.9418 b = 995.8509 b = 995.7590 b = 995.6661 b = 995.5722 b = 995.4773 b = 995.3813 b = 995.2844 b = 995.1864 b = 995.0874 b = 994.9874 b = 994.8864 b = 994.7844 b = 994.6814 b = 994.5773 b = 994.4722 b = 994.3661 b = 994.2590 b = 994.1509 b = 994.0417 b = 993.9316 b = 993.8204 b = 993.7082 b = 993.5950 b = 993.4807 b = 993.3655 b = 993.2492 b = 993.1319 b = 993.0136 b = 992.8943 b = 992.7739 b = 992.6525 b = 992.5301 b = 992.4067 b = 992.2822 b = 992.1567 b = 992.0302 b = 991.9027 b = 991.7742 b = 991.6446 b = 991.5140 b = 991.3824 b = 991.2497 b = 991.1160 b = 990.9813 b = 990.8456 b = 990.7088 b = 990.5710 b = 990.4322 b = 990.2924 b = 990.1515 b = 990.0096 b = 989.8667 b = 989.7227 b = 989.5777 b = 989.4317 b = 989.2846 b = 989.1365 b = 988.9874 b = 988.8372 b = 988.6860 b = 988.5338 b = 988.3805 b = 988.2262 b = 988.0708 b = 987.9145 b = 987.7571 b = 987.5986 b = 987.4391 b = 987.2786 b = 987.1170 b = 986.9544 b = 986.7908 b = 986.6261 b = 986.4603 b = 986.2936 b = 986.1258 b = 985.9569 b = 985.7870 b = 985.6161 b = 985.4441 b = 985.2710 b = 985.0969 b = 984.9218 b = 984.7457 b = 984.5684 b = 984.3902 b = 984.2109 b = 984.0305 b = 983.8491 b = 983.6666 b = 983.4831 b = 983.2985 b = 983.1129 b = 982.9262 b = 982.7385 b = 982.5497 b = 982.3599 b = 982.1690 b = 981.9771 b = 981.7841 b = 981.5900 b = 981.3949 b = 981.1988 b = 981.0015 b = 980.8032 b = 980.6039 b = 980.4035 b = 980.2020 b = 979.9995 b = 979.7959 b = 979.5912 b = 979.3855 b = 979.1787 b = 978.9709 b = 978.7620 b = 978.5520 b = 978.3409 b = 978.1288 b = 977.9156 b = 977.7014 b = 977.4861 b = 977.2697 b = 977.0522 b = 976.8337 b = 976.6140 b = 976.3934 b = 976.1716 b = 975.9488 b = 975.7249 b = 975.4999 b = 975.2738 b = 975.0467 b = 974.8184 b = 974.5891 b = 974.3588 b = 974.1273 b = 973.8948 b = 973.6611 b = 973.4264 b = 973.1906 b = 972.9538 b = 972.7158 b = 972.4767 b = 972.2366 b = 971.9954 b = 971.7531 b = 971.5096 b = 971.2652 b = 971.0196 b = 970.7729 b = 970.5251 b = 970.2762 b = 970.0263 b = 969.7752 b = 969.5231 b = 969.2698 b = 969.0155 b = 968.7600 b = 968.5035 b = 968.2458 b = 967.9871 b = 967.7272 b = 967.4663 b = 967.2042 b = 966.9411 b = 966.6768 b = 966.4114 b = 966.1449 b = 965.8773 b = 965.6086 b = 965.3388 b = 965.0679 b = 964.7958 b = 964.5227 b = 964.2484 b = 963.9730 b = 963.6965 b = 963.4189 b = 963.1402 b = 962.8603 b = 962.5793 b = 962.2973 b = 962.0140 b = 961.7297 b = 961.4442 b = 961.1576 b = 960.8699 b = 960.5811 b = 960.2911 b = 960 y = 280 960 b = 959.7078 b = 959.4144 b = 959.1199 b = 958.8243 b = 958.5275 b = 958.2296 b = 957.9306 b = 957.6304 b = 957.3291 b = 957.0266 b = 956.7231 b = 956.4183 b = 956.1124 b = 955.8054 b = 955.4973 b = 955.1879 b = 954.8775 b = 954.5659 b = 954.2531 b = 953.9392 b = 953.6241 b = 953.3079 b = 952.9906 b = 952.6720 b = 952.3524 b = 952.0315 b = 951.7095 b = 951.3864 b = 951.0620 b = 950.7366 b = 950.4099 b = 950.0821 b = 949.7531 b = 949.4230 b = 949.0917 b = 948.7592 b = 948.4255 b = 948.0907 b = 947.7547 b = 947.4175 b = 947.0792 b = 946.7397 b = 946.3990 b = 946.0571 b = 945.7140 b = 945.3698 b = 945.0243 b = 944.6777 b = 944.3299 b = 943.9809 b = 943.6308 b = 943.2794 b = 942.9268 b = 942.5731 b = 942.2181 b = 941.8620 b = 941.5046 b = 941.1461 b = 940.7864 b = 940.4254 b = 940.0633 b = 939.7000 b = 939.3354 b = 938.9696 b = 938.6027 b = 938.2345 b = 937.8651 b = 937.4945 b = 937.1227 b = 936.7497 b = 936.3755 b = 936 y = 280 960 352 936 b = 935.6233 b = 935.2454 b = 934.8663 b = 934.4860 b = 934.1044 b = 933.7216 b = 933.3376 b = 932.9523 b = 932.5658 b = 932.1781 b = 931.7891 b = 931.3989 b = 931.0075 b = 930.6149 b = 930.2209 b = 929.8258 b = 929.4294 b = 929.0318 b = 928.6329 b = 928.2327 b = 927.8313 b = 927.4287 b = 927.0248 b = 926.6197 b = 926.2133 b = 925.8056 b = 925.3967 b = 924.9865 b = 924.5750 b = 924.1623 b = 923.7483 b = 923.3331 b = 922.9166 b = 922.4988 b = 922.0797 b = 921.6594 b = 921.2378 b = 920.8149 b = 920.3907 b = 919.9652 b = 919.5385 b = 919.1104 b = 918.6811 b = 918.2505 b = 917.8186 b = 917.3854 b = 916.9509 b = 916.5151 b = 916.0781 b = 915.6397 b = 915.2000 b = 914.7590 b = 914.3167 b = 913.8731 b = 913.4282 b = 912.9819 b = 912.5344 b = 912.0855 b = 911.6353 b = 911.1838 b = 910.7310 b = 910.2769 b = 909.8214 b = 909.3646 b = 908.9065 b = 908.4470 b = 907.9862 b = 907.5241 b = 907.0606 b = 906.5958 b = 906.1297 b = 905.6622 b = 905.1933 b = 904.7232 b = 904.2516 b = 903.7787 b = 903.3045 b = 902.8289 b = 902.3519 b = 901.8736 b = 901.3939 b = 900.9129 b = 900.4305 b = 899.9467 b = 899.4615 b = 898.9750 b = 898.4871 b = 897.9978 b = 897.5071 b = 897.0151 b = 896.5216 b = 896.0268 b = 895.5306 b = 895.0330 b = 894.5340 b = 894.0336 b = 893.5318 b = 893.0286 b = 892.5239 b = 892.0179 b = 891.5105 b = 891.0017 b = 890.4914 b = 889.9798 b = 889.4667 b = 888.9522 b = 888.4363 b = 887.9189 b = 887.4001 b = 886.8799 b = 886.3583 b = 885.8352 b = 885.3107 b = 884.7847 b = 884.2573 b = 883.7285 b = 883.1982 b = 882.6664 b = 882.1332 b = 881.5985 b = 881.0624 b = 880.5248 b = 879.9858 b = 879.4453 b = 878.9033 b = 878.3598 b = 877.8149 b = 877.2685 b = 876.7206 b = 876.1712 b = 875.6204 b = 875.0680 b = 874.5142 b = 873.9588 b = 873.4020 b = 872.8436 b = 872.2838 b = 871.7224 b = 871.1596 b = 870.5952 b = 870.0293 b = 869.4619 b = 868.8930 b = 868.3225 b = 867.7505 b = 867.1770 b = 866.6020 b = 866.0254 b = 865.4473 b = 864.8676 b = 864.2864 b = 863.7037 b = 863.1193 b = 862.5335 b = 861.9461 b = 861.3571 b = 860.7665 b = 860.1744 b = 859.5807 b = 858.9854 b = 858.3886 b = 857.7902 b = 857.1902 b = 856.5886 b = 855.9854 b = 855.3806 b = 854.7742 b = 854.1663 b = 853.5567 b = 852.9455 b = 852.3327 b = 851.7183 b = 851.1022 b = 850.4846 b = 849.8653 b = 849.2444 b = 848.6218 b = 847.9976 b = 847.3718 b = 846.7444 b = 846.1152 b = 845.4845 b = 844.8521 b = 844.2180 b = 843.5822 b = 842.9448 b = 842.3058 b = 841.6650 b = 841.0226 b = 840.3785 b = 839.7327 b = 839.0852 b = 838.4360 b = 837.7852 b = 837.1326 b = 836.4783 b = 835.8223 b = 835.1647 b = 834.5052 b = 833.8441 b = ...

10   Pass
c = 123; y_correct = []; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3641e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3640e+03 b = 1.3639e+03 b = 1.3639e+03 b = 1.3639e+03 b = 1.3639e+03 b = 1.3639e+03 b = 1.3638e+03 b = 1.3638e+03 b = 1.3638e+03 b = 1.3638e+03 b = 1.3638e+03 b = 1.3637e+03 b = 1.3637e+03 b = 1.3637e+03 b = 1.3637e+03 b = 1.3636e+03 b = 1.3636e+03 b = 1.3636e+03 b = 1.3635e+03 b = 1.3635e+03 b = 1.3635e+03 b = 1.3635e+03 b = 1.3634e+03 b = 1.3634e+03 b = 1.3634e+03 b = 1.3633e+03 b = 1.3633e+03 b = 1.3633e+03 b = 1.3632e+03 b = 1.3632e+03 b = 1.3631e+03 b = 1.3631e+03 b = 1.3631e+03 b = 1.3630e+03 b = 1.3630e+03 b = 1.3629e+03 b = 1.3629e+03 b = 1.3629e+03 b = 1.3628e+03 b = 1.3628e+03 b = 1.3627e+03 b = 1.3627e+03 b = 1.3626e+03 b = 1.3626e+03 b = 1.3625e+03 b = 1.3625e+03 b = 1.3624e+03 b = 1.3624e+03 b = 1.3623e+03 b = 1.3623e+03 b = 1.3622e+03 b = 1.3622e+03 b = 1.3621e+03 b = 1.3621e+03 b = 1.3620e+03 b = 1.3620e+03 b = 1.3619e+03 b = 1.3618e+03 b = 1.3618e+03 b = 1.3617e+03 b = 1.3617e+03 b = 1.3616e+03 b = 1.3615e+03 b = 1.3615e+03 b = 1.3614e+03 b = 1.3614e+03 b = 1.3613e+03 b = 1.3612e+03 b = 1.3612e+03 b = 1.3611e+03 b = 1.3610e+03 b = 1.3610e+03 b = 1.3609e+03 b = 1.3608e+03 b = 1.3608e+03 b = 1.3607e+03 b = 1.3606e+03 b = 1.3605e+03 b = 1.3605e+03 b = 1.3604e+03 b = 1.3603e+03 b = 1.3602e+03 b = 1.3602e+03 b = 1.3601e+03 b = 1.3600e+03 b = 1.3599e+03 b = 1.3599e+03 b = 1.3598e+03 b = 1.3597e+03 b = 1.3596e+03 b = 1.3595e+03 b = 1.3594e+03 b = 1.3594e+03 b = 1.3593e+03 b = 1.3592e+03 b = 1.3591e+03 b = 1.3590e+03 b = 1.3589e+03 b = 1.3588e+03 b = 1.3588e+03 b = 1.3587e+03 b = 1.3586e+03 b = 1.3585e+03 b = 1.3584e+03 b = 1.3583e+03 b = 1.3582e+03 b = 1.3581e+03 b = 1.3580e+03 b = 1.3579e+03 b = 1.3578e+03 b = 1.3577e+03 b = 1.3576e+03 b = 1.3575e+03 b = 1.3574e+03 b = 1.3573e+03 b = 1.3572e+03 b = 1.3571e+03 b = 1.3570e+03 b = 1.3569e+03 b = 1.3568e+03 b = 1.3567e+03 b = 1.3566e+03 b = 1.3565e+03 b = 1.3564e+03 b = 1.3563e+03 b = 1.3562e+03 b = 1.3561e+03 b = 1.3560e+03 b = 1.3559e+03 b = 1.3558e+03 b = 1.3556e+03 b = 1.3555e+03 b = 1.3554e+03 b = 1.3553e+03 b = 1.3552e+03 b = 1.3551e+03 b = 1.3550e+03 b = 1.3548e+03 b = 1.3547e+03 b = 1.3546e+03 b = 1.3545e+03 b = 1.3544e+03 b = 1.3542e+03 b = 1.3541e+03 b = 1.3540e+03 b = 1.3539e+03 b = 1.3538e+03 b = 1.3536e+03 b = 1.3535e+03 b = 1.3534e+03 b = 1.3532e+03 b = 1.3531e+03 b = 1.3530e+03 b = 1.3529e+03 b = 1.3527e+03 b = 1.3526e+03 b = 1.3525e+03 b = 1.3523e+03 b = 1.3522e+03 b = 1.3521e+03 b = 1.3519e+03 b = 1.3518e+03 b = 1.3517e+03 b = 1.3515e+03 b = 1.3514e+03 b = 1.3513e+03 b = 1.3511e+03 b = 1.3510e+03 b = 1.3508e+03 b = 1.3507e+03 b = 1.3506e+03 b = 1.3504e+03 b = 1.3503e+03 b = 1.3501e+03 b = 1.3500e+03 b = 1.3498e+03 b = 1.3497e+03 b = 1.3495e+03 b = 1.3494e+03 b = 1.3492e+03 b = 1.3491e+03 b = 1.3489e+03 b = 1.3488e+03 b = 1.3486e+03 b = 1.3485e+03 b = 1.3483e+03 b = 1.3482e+03 b = 1.3480e+03 b = 1.3479e+03 b = 1.3477e+03 b = 1.3476e+03 b = 1.3474e+03 b = 1.3472e+03 b = 1.3471e+03 b = 1.3469e+03 b = 1.3468e+03 b = 1.3466e+03 b = 1.3464e+03 b = 1.3463e+03 b = 1.3461e+03 b = 1.3460e+03 b = 1.3458e+03 b = 1.3456e+03 b = 1.3455e+03 b = 1.3453e+03 b = 1.3451e+03 b = 1.3449e+03 b = 1.3448e+03 b = 1.3446e+03 b = 1.3444e+03 b = 1.3443e+03 b = 1.3441e+03 b = 1.3439e+03 b = 1.3437e+03 b = 1.3436e+03 b = 1.3434e+03 b = 1.3432e+03 b = 1.3430e+03 b = 1.3429e+03 b = 1.3427e+03 b = 1.3425e+03 b = 1.3423e+03 b = 1.3421e+03 b = 1.3420e+03 b = 1.3418e+03 b = 1.3416e+03 b = 1.3414e+03 b = 1.3412e+03 b = 1.3410e+03 b = 1.3408e+03 b = 1.3407e+03 b = 1.3405e+03 b = 1.3403e+03 b = 1.3401e+03 b = 1.3399e+03 b = 1.3397e+03 b = 1.3395e+03 b = 1.3393e+03 b = 1.3391e+03 b = 1.3389e+03 b = 1.3387e+03 b = 1.3385e+03 b = 1.3383e+03 b = 1.3381e+03 b = 1.3380e+03 b = 1.3378e+03 b = 1.3376e+03 b = 1.3374e+03 b = 1.3371e+03 b = 1.3369e+03 b = 1.3367e+03 b = 1.3365e+03 b = 1.3363e+03 b = 1.3361e+03 b = 1.3359e+03 b = 1.3357e+03 b = 1.3355e+03 b = 1.3353e+03 b = 1.3351e+03 b = 1.3349e+03 b = 1.3347e+03 b = 1.3345e+03 b = 1.3342e+03 b = 1.3340e+03 b = 1.3338e+03 b = 1.3336e+03 b = 1.3334e+03 b = 1.3332e+03 b = 1.3330e+03 b = 1.3327e+03 b = 1.3325e+03 b = 1.3323e+03 b = 1.3321e+03 b = 1.3319e+03 b = 1.3316e+03 b = 1.3314e+03 b = 1.3312e+03 b = 1.3310e+03 b = 1.3307e+03 b = 1.3305e+03 b = 1.3303e+03 b = 1.3301e+03 b = 1.3298e+03 b = 1.3296e+03 b = 1.3294e+03 b = 1.3291e+03 b = 1.3289e+03 b = 1.3287e+03 b = 1.3284e+03 b = 1.3282e+03 b = 1.3280e+03 b = 1.3277e+03 b = 1.3275e+03 b = 1.3273e+03 b = 1.3270e+03 b = 1.3268e+03 b = 1.3266e+03 b = 1.3263e+03 b = 1.3261e+03 b = 1.3258e+03 b = 1.3256e+03 b = 1.3253e+03 b = 1.3251e+03 b = 1.3249e+03 b = 1.3246e+03 b = 1.3244e+03 b = 1.3241e+03 b = 1.3239e+03 b = 1.3236e+03 b = 1.3234e+03 b = 1.3231e+03 b = 1.3229e+03 b = 1.3226e+03 b = 1.3224e+03 b = 1.3221e+03 b = 1.3219e+03 b = 1.3216e+03 b = 1.3213e+03 b = 1.3211e+03 b = 1.3208e+03 b = 1.3206e+03 b = 1.3203e+03 b = 1.3200e+03 b = 1.3198e+03 b = 1.3195e+03 b = 1.3193e+03 b = 1.3190e+03 b = 1.3187e+03 b = 1.3185e+03 b = 1.3182e+03 b = 1.3179e+03 b = 1.3177e+03 b = 1.3174e+03 b = 1.3171e+03 b = 1.3169e+03 b = 1.3166e+03 b = 1.3163e+03 b = 1.3160e+03 b = 1.3158e+03 b = 1.3155e+03 b = 1.3152e+03 b = 1.3150e+03 b = 1.3147e+03 b = 1.3144e+03 b = 1.3141e+03 b = 1.3138e+03 b = 1.3136e+03 b = 1.3133e+03 b = 1.3130e+03 b = 1.3127e+03 b = 1.3124e+03 b = 1.3122e+03 b = 1.3119e+03 b = 1.3116e+03 b = 1.3113e+03 b = 1.3110e+03 b = 1.3107e+03 b = 1.3104e+03 b = 1.3101e+03 b = 1.3098e+03 b = 1.3096e+03 b = 1.3093e+03 b = 1.3090e+03 b = 1.3087e+03 b = 1.3084e+03 b = 1.3081e+03 b = 1.3078e+03 b = 1.3075e+03 b = 1.3072e+03 b = 1.3069e+03 b = 1.3066e+03 b = 1.3063e+03 b = 1.3060e+03 b = 1.3057e+03 b = 1.3054e+03 b = 1.3051e+03 b = 1.3048e+03 b = 1.3045e+03 b = 1.3042e+03 b = 1.3039e+03 b = 1.3036e+03 b = 1.3032e+03 b = 1.3029e+03 b = 1.3026e+03 b = 1.3023e+03 b = 1.3020e+03 b = 1.3017e+03 b = 1.3014e+03 b = 1.3011e+03 b = 1.3007e+03 b = 1.3004e+03 b = 1.3001e+03 b = 1.2998e+03 b = 1.2995e+03 b = 1.2992e+03 b = 1.2988e+03 b = 1.2985e+03 b = 1.2982e+03 b = 1.2979e+03 b = 1.2975e+03 b = 1.2972e+03 b = 1.2969e+03 b = 1.2966e+03 b = 1.2962e+03 b = 1.2959e+03 b = 1.2956e+03 b = 1.2953e+03 b = 1.2949e+03 b = 1.2946e+03 b = 1.2943e+03 b = 1.2939e+03 b = 1.2936e+03 b = 1.2933e+03 b = 1.2929e+03 b = 1.2926e+03 b = 1.2922e+03 b = 1.2919e+03 b = 1.2916e+03 b = 1.2912e+03 b = 1.2909e+03 b = 1.2905e+03 b = 1.2902e+03 b = 1.2899e+03 b = 1.2895e+03 b = 1.2892e+03 b = 1.2888e+03 b = 1.2885e+03 b = 1.2881e+03 b = 1.2878e+03 b = 1.2874e+03 b = 1.2871e+03 b = 1.2867e+03 b = 1.2864e+03 b = 1.2860e+03 b = 1.2857e+03 b = 1.2853e+03 b = 1.2850e+03 b = 1.2846e+03 b = 1.2842e+03 b = 1.2839e+03 b = 1.2835e+03 b = 1.2832e+03 b = 1.2828e+03 b = 1.2824e+03 b = 1.2821e+03 b = 1.2817e+03 b = 1.2813e+03 b = 1.2810e+03 b = 1.2806e+03 b = 1.2802e+03 b = 1.2799e+03 b = 1.2795e+03 b = 1.2791e+03 b = 1.2788e+03 b = 1....

11   Pass
c = 340; y_correct = [408 6256;1360 6120; 1680 6040; 2280 5840; 2584 5712; 3304 5328; 3824 4968; 4080 4760]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2693e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2692e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2691e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2690e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2689e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2688e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2687e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2686e+03 b = 6.2685e+03 b = 6.2685e+03 b = 6.2685e+03 b = 6.2685e+03 b = 6.2685e+03 b = 6.2685e+03 b = 6.2684e+03 b = 6.2684e+03 b = 6.2684e+03 b = 6.2684e+03 b = 6.2684e+03 b = 6.2684e+03 b = 6.2683e+03 b = 6.2683e+03 b = 6.2683e+03 b = 6.2683e+03 b = 6.2683e+03 b = 6.2683e+03 b = 6.2682e+03 b = 6.2682e+03 b = 6.2682e+03 b = 6.2682e+03 b = 6.2682e+03 b = 6.2681e+03 b = 6.2681e+03 b = 6.2681e+03 b = 6.2681e+03 b = 6.2681e+03 b = 6.2680e+03 b = 6.2680e+03 b = 6.2680e+03 b = 6.2680e+03 b = 6.2680e+03 b = 6.2679e+03 b = 6.2679e+03 b = 6.2679e+03 b = 6.2679e+03 b = 6.2679e+03 b = 6.2678e+03 b = 6.2678e+03 b = 6.2678e+03 b = 6.2678e+03 b = 6.2677e+03 b = 6.2677e+03 b = 6.2677e+03 b = 6.2677e+03 b = 6.2677e+03 b = 6.2676e+03 b = 6.2676e+03 b = 6.2676e+03 b = 6.2676e+03 b = 6.2675e+03 b = 6.2675e+03 b = 6.2675e+03 b = 6.2675e+03 b = 6.2674e+03 b = 6.2674e+03 b = 6.2674e+03 b = 6.2674e+03 b = 6.2673e+03 b = 6.2673e+03 b = 6.2673e+03 b = 6.2673e+03 b = 6.2672e+03 b = 6.2672e+03 b = 6.2672e+03 b = 6.2672e+03 b = 6.2671e+03 b = 6.2671e+03 b = 6.2671e+03 b = 6.2671e+03 b = 6.2670e+03 b = 6.2670e+03 b = 6.2670e+03 b = 6.2670e+03 b = 6.2669e+03 b = 6.2669e+03 b = 6.2669e+03 b = 6.2668e+03 b = 6.2668e+03 b = 6.2668e+03 b = 6.2668e+03 b = 6.2667e+03 b = 6.2667e+03 b = 6.2667e+03 b = 6.2666e+03 b = 6.2666e+03 b = 6.2666e+03 b = 6.2666e+03 b = 6.2665e+03 b = 6.2665e+03 b = 6.2665e+03 b = 6.2664e+03 b = 6.2664e+03 b = 6.2664e+03 b = 6.2663e+03 b = 6.2663e+03 b = 6.2663e+03 b = 6.2663e+03 b = 6.2662e+03 b = 6.2662e+03 b = 6.2662e+03 b = 6.2661e+03 b = 6.2661e+03 b = 6.2661e+03 b = 6.2660e+03 b = 6.2660e+03 b = 6.2660e+03 b = 6.2659e+03 b = 6.2659e+03 b = 6.2659e+03 b = 6.2658e+03 b = 6.2658e+03 b = 6.2658e+03 b = 6.2657e+03 b = 6.2657e+03 b = 6.2657e+03 b = 6.2656e+03 b = 6.2656e+03 b = 6.2656e+03 b = 6.2655e+03 b = 6.2655e+03 b = 6.2655e+03 b = 6.2654e+03 b = 6.2654e+03 b = 6.2654e+03 b = 6.2653e+03 b = 6.2653e+03 b = 6.2653e+03 b = 6.2652e+03 b = 6.2652e+03 b = 6.2651e+03 b = 6.2651e+03 b = 6.2651e+03 b = 6.2650e+03 b = 6.2650e+03 b = 6.2650e+03 b = 6.2649e+03 b = 6.2649e+03 b = 6.2648e+03 b = 6.2648e+03 b = 6.2648e+03 b = 6.2647e+03 b = 6.2647e+03 b = 6.2647e+03 b = 6.2646e+03 b = 6.2646e+03 b = 6.2645e+03 b = 6.2645e+03 b = 6.2645e+03 b = 6.2644e+03 b = 6.2644e+03 b = 6.2643e+03 b = 6.2643e+03 b = 6.2643e+03 b = 6.2642e+03 b = 6.2642e+03 b = 6.2641e+03 b = 6.2641e+03 b = 6.2641e+03 b = 6.2640e+03 b = 6.2640e+03 b = 6.2639e+03 b = 6.2639e+03 b = 6.2639e+03 b = 6.2638e+03 b = 6.2638e+03 b = 6.2637e+03 b = 6.2637e+03 b = 6.2636e+03 b = 6.2636e+03 b = 6.2636e+03 b = 6.2635e+03 b = 6.2635e+03 b = 6.2634e+03 b = 6.2634e+03 b = 6.2633e+03 b = 6.2633e+03 b = 6.2633e+03 b = 6.2632e+03 b = 6.2632e+03 b = 6.2631e+03 b = 6.2631e+03 b = 6.2630e+03 b = 6.2630e+03 b = 6.2629e+03 b = 6.2629e+03 b = 6.2629e+03 b = 6.2628e+03 b = 6.2628e+03 b = 6.2627e+03 b = 6.2627e+03 b = 6.2626e+03 b = 6.2626e+03 b = 6.2625e+03 b = 6.2625e+03 b = 6.2624e+03 b = 6.2624e+03 b = 6.2623e+03 b = 6.2623e+03 b = 6.2623e+03 b = 6.2622e+03 b = 6.2622e+03 b = 6.2621e+03 b = 6.2621e+03 b = 6.2620e+03 b = 6.2620e+03 b = 6.2619e+03 b = 6.2619e+03 b = 6.2618e+03 b = 6.2618e+03 b = 6.2617e+03 b = 6.2617e+03 b = 6.2616e+03 b = 6.2616e+03 b = 6.2615e+03 b = 6.2615e+03 b = 6.2614e+03 b = 6.2614e+03 b = 6.2613e+03 b = 6.2613e+03 b = 6.2612e+03 b = 6.2612e+03 b = 6.2611e+03 b = 6.2611e+03 b = 6.2610e+03 b = 6.2610e+03 b = 6.2609e+03 b = 6.2609e+03 b = 6.2608e+03 b = 6.2608e+03 b = 6.2607e+03 b = 6.2607e+03 b = 6.2606e+03 b = 6.2605e+03 b = 6.2605e+03 b = 6.2604e+03 b = 6.2604e+03 b = 6.2603e+03 b = 6.2603e+03 b = 6.2602e+03 b = 6.2602e+03 b = 6.2601e+03 b = 6.2601e+03 b = 6.2600e+03 b = 6.2600e+03 b = 6.2599e+03 b = 6.2598e+03 b = 6.2598e+03 b = 6.2597e+03 b = 6.2597e+03 b = 6.2596e+03 b = 6.2596e+03 b = 6.2595e+03 b = 6.2595e+03 b = 6.2594e+03 b = 6.2593e+03 b = 6.2593e+03 b = 6.2592e+03 b = 6.2592e+03 b = 6.2591e+03 b = 6.2591e+03 b = 6.2590e+03 b = 6.2589e+03 b = 6.2589e+03 b = 6.2588e+03 b = 6.2588e+03 b = 6.2587e+03 b = 6.2587e+03 b = 6.2586e+03 b = 6.2585e+03 b = 6.2585e+03 b = 6.2584e+03 b = 6.2584e+03 b = 6.2583e+03 b = 6.2582e+03 b = 6.2582e+03 b = 6.2581e+03 b = 6.2581e+03 b = 6.2580e+03 b = 6.2579e+03 b = 6.2579e+03 b = 6.2578e+03 b = 6.2578e+03 b = 6.2577e+03 b = 6.2576e+03 b = 6.2576e+03 b = 6.2575e+03 b = 6.2575e+03 b = 6.2574e+03 b = 6.2573e+03 b = 6.2573e+03 b = 6.2572e+03 b = 6.2571e+03 b = 6.2571e+03 b = 6.2570e+03 b = 6.2570e+03 b = 6.2569e+03 b = 6.2568e+03 b = 6.2568e+03 b = 6.2567e+03 b = 6.2566e+03 b = 6.2566e+03 b = 6.2565e+03 b = 6.2565e+03 b = 6.2564e+03 b = 6.2563e+03 b = 6.2563e+03 b = 6.2562e+03 b = 6.2561e+03 b = 6.2561e+03 b = 6256 y = 408 6256 b = 6.2559e+03 b = 6.2559e+03 b = 6.2558e+03 b = 6.2557e+03 b = 6.2557e+03 b = 6.2556e+03 b = 6.2555e+03 b = 6.2555e+03 b = 6.2554e+03 b = 6.2553e+03 b = 6.2553e+03 b = 6.2552e+03 b = 6.2551e+03 b = 6.2551e+03 b = 6.2550e+03 b = 6.2549e+03 b = 6.2549e+03 b = 6.2548e+03 b = 6.2547e+03 b = 6.2547e+03 b = 6.2546e+03 b = 6.2545e+03 b = 6.2545e+03 b = 6.2544e+03 b = 6.2543e+03 b = 6.2543e+03 b = 6.2542e+03 b = 6.2541e+03 b = 6.2540e+03 b = 6.2540e+03 b = 6.2539e+03 b = 6.2538e+03 b = 6.2538e+03 b = 6.2537e+03 b = 6.2536e+03 b = 6.2535e+03 b = 6.2535e+03 b = 6.2534e+03 b = 6.2533e+03 b = 6.2533e+03 b = 6.2532e+03 b = 6.2531e+03 b = 6.2530e+03 b = 6.2530e+03 b = 6.2529e+03 b = 6.2528e+03 b = 6.2528e+03 b = 6.2527e+03 b = 6.2526e+03 b = 6.2525e+03 b = 6.2525e+03 b = 6.2524e+03 b = 6.2523e+03 b = 6.2522e+03 b = 6.2522e+03 b = 6.2521e+03 b = 6.2520e+03 b = 6.2519e+03 b = 6.2519e+03 b = 6.2518e+03 b = 6.2517e+03 b = 6.2516e+03 b = 6.2516e+03 b = 6.2515e+03 b = 6.2514e+03 b = 6.2513e+03 ...

12   Pass
c = 500; y_correct = [1160 11120; 2000 11000; 5000 10000; 5744 9592; 7600 8200]; assert(isequal(sumoftwosquares(c),y_correct))

y = [] b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1180e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1179e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1178e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1177e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1176e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1175e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1174e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1173e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1172e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1171e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1.1170e+04 b = 1....