Cody

Solution 1307501

Submitted on 21 Oct 2017 by stle
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))

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

a = 11.1355 a = 11 y = 2 11 a = 10.7703 a = 10.4403 a = 10 y = 2 11 5 10 a = 9.4340 a = 8.7178

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

a = 14.6629 a = 14.5602 a = 14.3875 a = 14.1421 a = 13.8203 a = 13.4164 a = 12.9228 a = 12.3288 a = 11.6190 a = 10.7703

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

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

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

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

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

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

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

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

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

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

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

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

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

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))

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

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

a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1180e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1179e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1178e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1177e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1176e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1175e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1174e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1173e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1172e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1171e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = 1.1170e+04 a = ...