Cody

# Problem 44386. Circumscribed Pentagon?

Solution 1576184

Submitted on 5 Jul 2018
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
p = [0,5; 4.76,1.55; 2.94,-4.05; -2.94,-4.05; -4.76,1.55]; cp = [0,0]; r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 0 0.0481 0.0962 0.1442 0.1923 0.2404 0.2885 0.3366 0.3846 0.4327 0.4808 0.5289 0.5770 0.6251 0.6731 0.7212 0.7693 Columns 18 through 34 0.8174 0.8655 0.9135 0.9616 1.0097 1.0578 1.1059 1.1539 1.2020 1.2501 1.2982 1.3463 1.3943 1.4424 1.4905 1.5386 1.5867 Columns 35 through 51 1.6347 1.6828 1.7309 1.7790 1.8271 1.8752 1.9232 1.9713 2.0194 2.0675 2.1156 2.1636 2.2117 2.2598 2.3079 2.3560 2.4040 Columns 52 through 68 2.4521 2.5002 2.5483 2.5964 2.6444 2.6925 2.7406 2.7887 2.8368 2.8848 2.9329 2.9810 3.0291 3.0772 3.1253 3.1733 3.2214 Columns 69 through 85 3.2695 3.3176 3.3657 3.4137 3.4618 3.5099 3.5580 3.6061 3.6541 3.7022 3.7503 3.7984 3.8465 3.8945 3.9426 3.9907 4.0388 Columns 86 through 102 4.0869 4.1349 4.1830 4.2311 4.2792 4.3273 4.3754 4.4234 4.4715 4.5196 4.5677 4.6158 4.6638 4.7119 4.7600 4.7600 4.7416 Columns 103 through 119 4.7232 4.7048 4.6865 4.6681 4.6497 4.6313 4.6129 4.5945 4.5762 4.5578 4.5394 4.5210 4.5026 4.4842 4.4659 4.4475 4.4291 Columns 120 through 136 4.4107 4.3923 4.3739 4.3556 4.3372 4.3188 4.3004 4.2820 4.2636 4.2453 4.2269 4.2085 4.1901 4.1717 4.1533 4.1349 4.1166 Columns 137 through 153 4.0982 4.0798 4.0614 4.0430 4.0246 4.0063 3.9879 3.9695 3.9511 3.9327 3.9143 3.8960 3.8776 3.8592 3.8408 3.8224 3.8040 Columns 154 through 170 3.7857 3.7673 3.7489 3.7305 3.7121 3.6937 3.6754 3.6570 3.6386 3.6202 3.6018 3.5834 3.5651 3.5467 3.5283 3.5099 3.4915 Columns 171 through 187 3.4731 3.4547 3.4364 3.4180 3.3996 3.3812 3.3628 3.3444 3.3261 3.3077 3.2893 3.2709 3.2525 3.2341 3.2158 3.1974 3.1790 Columns 188 through 204 3.1606 3.1422 3.1238 3.1055 3.0871 3.0687 3.0503 3.0319 3.0135 2.9952 2.9768 2.9584 2.9400 2.9400 2.8806 2.8212 2.7618 Columns 205 through 221 2.7024 2.6430 2.5836 2.5242 2.4648 2.4055 2.3461 2.2867 2.2273 2.1679 2.1085 2.0491 1.9897 1.9303 1.8709 1.8115 1.7521 Columns 222 through 238 1.6927 1.6333 1.5739 1.5145 1.4552 1.3958 1.3364 1.2770 1.2176 1.1582 1.0988 1.0394 0.9800 0.9206 0.8612 0.8018 0.7424 Columns 239 through 255 0.6830 0.6236 0.5642 0.5048 0.4455 0.3861 0.3267 0.2673 0.2079 0.1485 0.0891 0.0297 -0.0297 -0.0891 -0.1485 -0.2079 -0.2673 Columns 256 through 272 -0.3267 -0.3861 -0.4455 -0.5048 -0.5642 -0.6236 -0.6830 -0.7424 -0.8018 -0.8612 -0.9206 -0.9800 -1.0394 -1.0988 -1.1582 -1.2176 -1.2770 Columns 273 through 289 -1.3364 -1.3958 -1.4552 -1.5145 -1.5739 -1.6333 -1.6927 -1.7521 -1.8115 -1.8709 -1.9303 -1.9897 -2.0491 -2.1085 -2.1679 -2.2273 -2.2867 Columns 290 through 306 -2.3461 -2.4055 -2.4648 -2.5242 -2.5836 -2.6430 -2.7024 -2.7618 -2.8212 -2.8806 -2.9400 -2.9400 -2.9584 -2.9768 -2.9952 -3.0135 -3.0319 Columns 307 through 323 -3.0503 -3.0687 -3.0871 -3.1055 -3.1238 -3.1422 -3.1606 -3.1790 -3.1974 -3.2158 -3.2341 -3.2525 -3.2709 -3.2893 -3.3077 -3.3261 -3.3444 Columns 324 through 340 -3.3628 -3.3812 -3.3996 -3.4180 -3.4364 -3.4547 -3.4731 -3.4915 -3.5099 -3.5283 -3.5467 -3.5651 -3.5834 -3.6018 -3.6202 -3.6386 -3.6570 Columns 341 through 357 -3.6754 -3.6937 -3.7121 -3.7305 -3.7489 -3.7673 -3.7857 -3.8040 -3.8224 -3.8408 -3.8592 -3.8776 -3.8960 -3.9143 -3.9327 -3.9511 -3.9695 Columns 358 through 374 -3.9879 -4.0063 -4.0246 -4.0430 -4.0614 -4.0798 -4.0982 -4.1166 -4.1349 -4.1533 -4.1717 -4.1901 -4.2085 -4.2269 -4.2453 -4.2636 -4.2820 Columns 375 through 391 -4.3004 -4.3188 -4.3372 -4.3556 -4.3739 -4.3923 -4.4107 -4.4291 -4.4475 -4.4659 -4.4842 -4.5026 -4.5210 -4.5394 -4.5578 -4.5762 -4.5945 Columns 392 through 408 -4.6129 -4.6313 -4.6497 -4.6681 -4.6865 -4.7048 -4.7232 -4.7416 -4.7600 -4.7600 -4.7119 -4.6638 -4.6158 -4.5677 -4.5196 -4.4715 -4.4234 Columns 409 through 425 -4.3754 -4.3273 -4.2792 -4.2311 -4.1830 -4.1349 -4.0869 -4.0388 -3.9907 -3.9426 -3.8945 -3.8465 -3.7984 -3.7503 -3.7022 -3.6541 -3.6061 Columns 426 through 442 -3.5580 -3.5099 -3.4618 -3.4137 -3.3657 -3.3176 -3.2695 -3.2214 -3.1733 -3.1253 -3.0772 -3.0291 -2.9810 -2.9329 -2.8848 -2.8368 -2.7887 Columns 443 through 459 -2.7406 -2.6925 -2.6444 -2.5964 -2.5483 -2.5002 -2.4521 -2.4040 -2.3560 -2.3079 -2.2598 -2.2117 -2.1636 -2.1156 -2.0675 -2.0194 -1.9713 Columns 460 through 476 -1.9232 -1.8752 -1.8271 -1.7790 -1.7309 -1.6828 -1.6347 -1.5867 -1.5386 -1.4905 -1.4424 -1.3943 -1.3463 -1.2982 -1.2501 -1.2020 -1.1539 Columns 477 through 493 -1.1059 -1.0578 -1.0097 -0.9616 -0.9135 -0.8655 -0.8174 -0.7693 -0.7212 -0.6731 -0.6251 -0.5770 -0.5289 -0.4808 -0.4327 -0.3846 -0.3366 Columns 494 through 510 -0.2885 -0.2404 -0.1923 -0.1442 -0.0962 -0.0481 0 0 0.0481 0.0962 0.1442 0.1923 0.2404 0.2885 0.3366 0.3846 0.4327 Columns 511 through 527 0.4808 0.5289 0.5770 0.6251 0.6731 0.7212 0.7693 0.8174 0.8655 0.9135 0.9616 1.0097 1.0578 1.1059 1.1539 1.2020 1.2501 Columns 528 through 544 1.2982 1.3463 1.3943 1.4424 1.4905 1.5386 1.5867 1.6347 1.6828 1.7309 1.7790 1.8271 1.8752 1.9232 1.9713 2.0194 2.0675 Columns 545 through 561 2.1156 2.1636 2.2117 2.2598 2.3079 2.3560 2.4040 2.4521 2.5002 2.5483 2.5964 2.6444 2.6925 2.7406 2.7887 2.8368 2.8848 Columns 562 through 578 2.9329 2.9810 3.0291 3.0772 3.1253 3.1733 3.2214 3.2695 3.3176 3.3657 3.4137 3.4618 3.5099 3.5580 3.6061 3.6541 3.7022 Columns 579 through 595 3.7503 3.7984 3.8465 3.8945 3.9426 3.9907 4.0388 4.0869 4.1349 4.1830 4.2311 4.2792 4.3273 4.3754 4.4234 4.4715 4.5196 Columns 596 through 600 4.5677 4.6158 4.6638 4.7119 4.7600 pentagonY = Columns 1 through 17 5.0000 4.9652 4.9303 4.8955 4.8606 4.8258 4.7909 4.7561 4.7212 4.6864 4.6515 4.6167 4.5818 4.5470 4.5121 4.4773 4.4424 Columns 18 through 34 4.4076 4.3727 4.3379 4.3030 4.2682 4.2333 4.1985 4.1636 4.1288 4.0939 4.0591 4.0242 3.9894 3.9545 3.9197 3.8848 3.8500 Columns 35 through 51 3.8152 3.7803 3.7455 3.7106 3.6758 3.6409 3.6061 3.5712 3.5364 3.5015 3.4667 3.4318 3.3970 3.3621 3.3273 3.2924 3.2576 Columns 52 through 68 3.2227 3.1879 3.1530 3.1182 3.0833 3.0485 3.0136 2.9788 2.9439 2.9091 2.8742 2.8394 2.8045 2.7697 2.7348 2.7000 2.6652 Columns 69 through 85 2.6303 2.5955 2.5606 2.5258 2.4909 2.4561 2.4212 2.3864 2.3515 2.3167 2.2818 2.2470 2.2121 2.1773 2.1424 2.1076 2.0727 Columns 86 through 102 2.0379 2.0030 1.9682 1.9333 1.8985 1.8636 1.8288 1.7939 1.7591 1.7242 1.6894 1.6545 1.6197 1.5848 1.5500 1.5500 1.4934 Columns 103 through 119 1.4369 1.3803 1.3237 1.2672 1.2106 1.1540 1.0975 1.0409 0.9843 0.9278 0.8712 0.8146 0.7581 0.7015 0.6449 0.5884 0.5318 Columns 120 through 136 0.4753 0.4187 0.3621 0.3056 0.2490 0.1924 0.1359 0.0793 0.0227 -0.0338 -0.0904 -0.1470 -0.2035 -0.2601 -0.3167 -0.3732 -0.4298 Columns 137 through 153 -0.4864 -0.5429 -0.5995 -0.6561 -0.7126 -0.7692 -0.8258 -0.8823 -0.9389 -0.9955 -1.0520 -1.1086 -1.1652 -1.2217 -1.2783 -1.3348 -1.3914 Columns 154 through 170 -1.4480 -1.5045 -1.5611 -1.6177 -1.6742 -1.7308 -1.7874 -1.8439 -1.9005 -1.9571 -2.0136 -2.0702 -2.1268 -2.1833 -2.2399 -2.2965 -2.3530 Columns 171 through 187 -2.4096 -2.4662 -2.5227 -2.5793 -2.6359 -2.6924 -2.7490 -2.8056 -2.8621 -2.9187 -2.9753 -3.0318 -3.0884 -3.1449 -3.2015 -3.2581 -3.3146 Columns 188 through 204 -3.3712 -3.4278 -3.4843 -3.5409 -3.5975 -3.6540 -3.7106 -3.7672 -3.8237 -3.8803 -3.9369 -3.9934 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 Columns 205 through 221 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 Columns 222 through 238 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 Columns 239 through 255 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 -4.0500 Columns 256 through 272 -4.0500 -4.0500 -4.0500 -4.0500 -4.0...

2   Fail
p = [0,5.61; 5.40,1.69; 3.34,-4.66; -3.34,-4.66; -5.40,1.69]; cp = [0,0]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 0 0.0545 0.1091 0.1636 0.2182 0.2727 0.3273 0.3818 0.4364 0.4909 0.5455 0.6000 0.6545 0.7091 0.7636 0.8182 0.8727 Columns 18 through 34 0.9273 0.9818 1.0364 1.0909 1.1455 1.2000 1.2545 1.3091 1.3636 1.4182 1.4727 1.5273 1.5818 1.6364 1.6909 1.7455 1.8000 Columns 35 through 51 1.8545 1.9091 1.9636 2.0182 2.0727 2.1273 2.1818 2.2364 2.2909 2.3455 2.4000 2.4545 2.5091 2.5636 2.6182 2.6727 2.7273 Columns 52 through 68 2.7818 2.8364 2.8909 2.9455 3.0000 3.0545 3.1091 3.1636 3.2182 3.2727 3.3273 3.3818 3.4364 3.4909 3.5455 3.6000 3.6545 Columns 69 through 85 3.7091 3.7636 3.8182 3.8727 3.9273 3.9818 4.0364 4.0909 4.1455 4.2000 4.2545 4.3091 4.3636 4.4182 4.4727 4.5273 4.5818 Columns 86 through 102 4.6364 4.6909 4.7455 4.8000 4.8545 4.9091 4.9636 5.0182 5.0727 5.1273 5.1818 5.2364 5.2909 5.3455 5.4000 5.4000 5.3792 Columns 103 through 119 5.3584 5.3376 5.3168 5.2960 5.2752 5.2543 5.2335 5.2127 5.1919 5.1711 5.1503 5.1295 5.1087 5.0879 5.0671 5.0463 5.0255 Columns 120 through 136 5.0046 4.9838 4.9630 4.9422 4.9214 4.9006 4.8798 4.8590 4.8382 4.8174 4.7966 4.7758 4.7549 4.7341 4.7133 4.6925 4.6717 Columns 137 through 153 4.6509 4.6301 4.6093 4.5885 4.5677 4.5469 4.5261 4.5053 4.4844 4.4636 4.4428 4.4220 4.4012 4.3804 4.3596 4.3388 4.3180 Columns 154 through 170 4.2972 4.2764 4.2556 4.2347 4.2139 4.1931 4.1723 4.1515 4.1307 4.1099 4.0891 4.0683 4.0475 4.0267 4.0059 3.9851 3.9642 Columns 171 through 187 3.9434 3.9226 3.9018 3.8810 3.8602 3.8394 3.8186 3.7978 3.7770 3.7562 3.7354 3.7145 3.6937 3.6729 3.6521 3.6313 3.6105 Columns 188 through 204 3.5897 3.5689 3.5481 3.5273 3.5065 3.4857 3.4648 3.4440 3.4232 3.4024 3.3816 3.3608 3.3400 3.3400 3.2725 3.2051 3.1376 Columns 205 through 221 3.0701 3.0026 2.9352 2.8677 2.8002 2.7327 2.6653 2.5978 2.5303 2.4628 2.3954 2.3279 2.2604 2.1929 2.1255 2.0580 1.9905 Columns 222 through 238 1.9230 1.8556 1.7881 1.7206 1.6531 1.5857 1.5182 1.4507 1.3832 1.3158 1.2483 1.1808 1.1133 1.0459 0.9784 0.9109 0.8434 Columns 239 through 255 0.7760 0.7085 0.6410 0.5735 0.5061 0.4386 0.3711 0.3036 0.2362 0.1687 0.1012 0.0337 -0.0337 -0.1012 -0.1687 -0.2362 -0.3036 Columns 256 through 272 -0.3711 -0.4386 -0.5061 -0.5735 -0.6410 -0.7085 -0.7760 -0.8434 -0.9109 -0.9784 -1.0459 -1.1133 -1.1808 -1.2483 -1.3158 -1.3832 -1.4507 Columns 273 through 289 -1.5182 -1.5857 -1.6531 -1.7206 -1.7881 -1.8556 -1.9230 -1.9905 -2.0580 -2.1255 -2.1929 -2.2604 -2.3279 -2.3954 -2.4628 -2.5303 -2.5978 Columns 290 through 306 -2.6653 -2.7327 -2.8002 -2.8677 -2.9352 -3.0026 -3.0701 -3.1376 -3.2051 -3.2725 -3.3400 -3.3400 -3.3608 -3.3816 -3.4024 -3.4232 -3.4440 Columns 307 through 323 -3.4648 -3.4857 -3.5065 -3.5273 -3.5481 -3.5689 -3.5897 -3.6105 -3.6313 -3.6521 -3.6729 -3.6937 -3.7145 -3.7354 -3.7562 -3.7770 -3.7978 Columns 324 through 340 -3.8186 -3.8394 -3.8602 -3.8810 -3.9018 -3.9226 -3.9434 -3.9642 -3.9851 -4.0059 -4.0267 -4.0475 -4.0683 -4.0891 -4.1099 -4.1307 -4.1515 Columns 341 through 357 -4.1723 -4.1931 -4.2139 -4.2347 -4.2556 -4.2764 -4.2972 -4.3180 -4.3388 -4.3596 -4.3804 -4.4012 -4.4220 -4.4428 -4.4636 -4.4844 -4.5053 Columns 358 through 374 -4.5261 -4.5469 -4.5677 -4.5885 -4.6093 -4.6301 -4.6509 -4.6717 -4.6925 -4.7133 -4.7341 -4.7549 -4.7758 -4.7966 -4.8174 -4.8382 -4.8590 Columns 375 through 391 -4.8798 -4.9006 -4.9214 -4.9422 -4.9630 -4.9838 -5.0046 -5.0255 -5.0463 -5.0671 -5.0879 -5.1087 -5.1295 -5.1503 -5.1711 -5.1919 -5.2127 Columns 392 through 408 -5.2335 -5.2543 -5.2752 -5.2960 -5.3168 -5.3376 -5.3584 -5.3792 -5.4000 -5.4000 -5.3455 -5.2909 -5.2364 -5.1818 -5.1273 -5.0727 -5.0182 Columns 409 through 425 -4.9636 -4.9091 -4.8545 -4.8000 -4.7455 -4.6909 -4.6364 -4.5818 -4.5273 -4.4727 -4.4182 -4.3636 -4.3091 -4.2545 -4.2000 -4.1455 -4.0909 Columns 426 through 442 -4.0364 -3.9818 -3.9273 -3.8727 -3.8182 -3.7636 -3.7091 -3.6545 -3.6000 -3.5455 -3.4909 -3.4364 -3.3818 -3.3273 -3.2727 -3.2182 -3.1636 Columns 443 through 459 -3.1091 -3.0545 -3.0000 -2.9455 -2.8909 -2.8364 -2.7818 -2.7273 -2.6727 -2.6182 -2.5636 -2.5091 -2.4545 -2.4000 -2.3455 -2.2909 -2.2364 Columns 460 through 476 -2.1818 -2.1273 -2.0727 -2.0182 -1.9636 -1.9091 -1.8545 -1.8000 -1.7455 -1.6909 -1.6364 -1.5818 -1.5273 -1.4727 -1.4182 -1.3636 -1.3091 Columns 477 through 493 -1.2545 -1.2000 -1.1455 -1.0909 -1.0364 -0.9818 -0.9273 -0.8727 -0.8182 -0.7636 -0.7091 -0.6545 -0.6000 -0.5455 -0.4909 -0.4364 -0.3818 Columns 494 through 510 -0.3273 -0.2727 -0.2182 -0.1636 -0.1091 -0.0545 0 0 0.0545 0.1091 0.1636 0.2182 0.2727 0.3273 0.3818 0.4364 0.4909 Columns 511 through 527 0.5455 0.6000 0.6545 0.7091 0.7636 0.8182 0.8727 0.9273 0.9818 1.0364 1.0909 1.1455 1.2000 1.2545 1.3091 1.3636 1.4182 Columns 528 through 544 1.4727 1.5273 1.5818 1.6364 1.6909 1.7455 1.8000 1.8545 1.9091 1.9636 2.0182 2.0727 2.1273 2.1818 2.2364 2.2909 2.3455 Columns 545 through 561 2.4000 2.4545 2.5091 2.5636 2.6182 2.6727 2.7273 2.7818 2.8364 2.8909 2.9455 3.0000 3.0545 3.1091 3.1636 3.2182 3.2727 Columns 562 through 578 3.3273 3.3818 3.4364 3.4909 3.5455 3.6000 3.6545 3.7091 3.7636 3.8182 3.8727 3.9273 3.9818 4.0364 4.0909 4.1455 4.2000 Columns 579 through 595 4.2545 4.3091 4.3636 4.4182 4.4727 4.5273 4.5818 4.6364 4.6909 4.7455 4.8000 4.8545 4.9091 4.9636 5.0182 5.0727 5.1273 Columns 596 through 600 5.1818 5.2364 5.2909 5.3455 5.4000 pentagonY = Columns 1 through 17 5.6100 5.5704 5.5308 5.4912 5.4516 5.4120 5.3724 5.3328 5.2932 5.2536 5.2140 5.1744 5.1348 5.0953 5.0557 5.0161 4.9765 Columns 18 through 34 4.9369 4.8973 4.8577 4.8181 4.7785 4.7389 4.6993 4.6597 4.6201 4.5805 4.5409 4.5013 4.4617 4.4221 4.3825 4.3429 4.3033 Columns 35 through 51 4.2637 4.2241 4.1845 4.1449 4.1054 4.0658 4.0262 3.9866 3.9470 3.9074 3.8678 3.8282 3.7886 3.7490 3.7094 3.6698 3.6302 Columns 52 through 68 3.5906 3.5510 3.5114 3.4718 3.4322 3.3926 3.3530 3.3134 3.2738 3.2342 3.1946 3.1551 3.1155 3.0759 3.0363 2.9967 2.9571 Columns 69 through 85 2.9175 2.8779 2.8383 2.7987 2.7591 2.7195 2.6799 2.6403 2.6007 2.5611 2.5215 2.4819 2.4423 2.4027 2.3631 2.3235 2.2839 Columns 86 through 102 2.2443 2.2047 2.1652 2.1256 2.0860 2.0464 2.0068 1.9672 1.9276 1.8880 1.8484 1.8088 1.7692 1.7296 1.6900 1.6900 1.6259 Columns 103 through 119 1.5617 1.4976 1.4334 1.3693 1.3052 1.2410 1.1769 1.1127 1.0486 0.9844 0.9203 0.8562 0.7920 0.7279 0.6637 0.5996 0.5355 Columns 120 through 136 0.4713 0.4072 0.3430 0.2789 0.2147 0.1506 0.0865 0.0223 -0.0418 -0.1060 -0.1701 -0.2342 -0.2984 -0.3625 -0.4267 -0.4908 -0.5549 Columns 137 through 153 -0.6191 -0.6832 -0.7474 -0.8115 -0.8757 -0.9398 -1.0039 -1.0681 -1.1322 -1.1964 -1.2605 -1.3246 -1.3888 -1.4529 -1.5171 -1.5812 -1.6454 Columns 154 through 170 -1.7095 -1.7736 -1.8378 -1.9019 -1.9661 -2.0302 -2.0943 -2.1585 -2.2226 -2.2868 -2.3509 -2.4151 -2.4792 -2.5433 -2.6075 -2.6716 -2.7358 Columns 171 through 187 -2.7999 -2.8640 -2.9282 -2.9923 -3.0565 -3.1206 -3.1847 -3.2489 -3.3130 -3.3772 -3.4413 -3.5055 -3.5696 -3.6337 -3.6979 -3.7620 -3.8262 Columns 188 through 204 -3.8903 -3.9544 -4.0186 -4.0827 -4.1469 -4.2110 -4.2752 -4.3393 -4.4034 -4.4676 -4.5317 -4.5959 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 Columns 205 through 221 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 Columns 222 through 238 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 Columns 239 through 255 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 -4.6600 Columns 256 through 272 -4.6600 -4.6600 -4.6600 -4.6600 -4.6...

Assertion failed.

3   Pass
p = [0,6.18; 5.88,1.91; 3.63,-5.00; -3.63,-5.00; -5.88,1.91]; cp = [0,0]; r = 5; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 0 0.0594 0.1188 0.1782 0.2376 0.2970 0.3564 0.4158 0.4752 0.5345 0.5939 0.6533 0.7127 0.7721 0.8315 0.8909 0.9503 Columns 18 through 34 1.0097 1.0691 1.1285 1.1879 1.2473 1.3067 1.3661 1.4255 1.4848 1.5442 1.6036 1.6630 1.7224 1.7818 1.8412 1.9006 1.9600 Columns 35 through 51 2.0194 2.0788 2.1382 2.1976 2.2570 2.3164 2.3758 2.4352 2.4945 2.5539 2.6133 2.6727 2.7321 2.7915 2.8509 2.9103 2.9697 Columns 52 through 68 3.0291 3.0885 3.1479 3.2073 3.2667 3.3261 3.3855 3.4448 3.5042 3.5636 3.6230 3.6824 3.7418 3.8012 3.8606 3.9200 3.9794 Columns 69 through 85 4.0388 4.0982 4.1576 4.2170 4.2764 4.3358 4.3952 4.4545 4.5139 4.5733 4.6327 4.6921 4.7515 4.8109 4.8703 4.9297 4.9891 Columns 86 through 102 5.0485 5.1079 5.1673 5.2267 5.2861 5.3455 5.4048 5.4642 5.5236 5.5830 5.6424 5.7018 5.7612 5.8206 5.8800 5.8800 5.8573 Columns 103 through 119 5.8345 5.8118 5.7891 5.7664 5.7436 5.7209 5.6982 5.6755 5.6527 5.6300 5.6073 5.5845 5.5618 5.5391 5.5164 5.4936 5.4709 Columns 120 through 136 5.4482 5.4255 5.4027 5.3800 5.3573 5.3345 5.3118 5.2891 5.2664 5.2436 5.2209 5.1982 5.1755 5.1527 5.1300 5.1073 5.0845 Columns 137 through 153 5.0618 5.0391 5.0164 4.9936 4.9709 4.9482 4.9255 4.9027 4.8800 4.8573 4.8345 4.8118 4.7891 4.7664 4.7436 4.7209 4.6982 Columns 154 through 170 4.6755 4.6527 4.6300 4.6073 4.5845 4.5618 4.5391 4.5164 4.4936 4.4709 4.4482 4.4255 4.4027 4.3800 4.3573 4.3345 4.3118 Columns 171 through 187 4.2891 4.2664 4.2436 4.2209 4.1982 4.1755 4.1527 4.1300 4.1073 4.0845 4.0618 4.0391 4.0164 3.9936 3.9709 3.9482 3.9255 Columns 188 through 204 3.9027 3.8800 3.8573 3.8345 3.8118 3.7891 3.7664 3.7436 3.7209 3.6982 3.6755 3.6527 3.6300 3.6300 3.5567 3.4833 3.4100 Columns 205 through 221 3.3367 3.2633 3.1900 3.1167 3.0433 2.9700 2.8967 2.8233 2.7500 2.6767 2.6033 2.5300 2.4567 2.3833 2.3100 2.2367 2.1633 Columns 222 through 238 2.0900 2.0167 1.9433 1.8700 1.7967 1.7233 1.6500 1.5767 1.5033 1.4300 1.3567 1.2833 1.2100 1.1367 1.0633 0.9900 0.9167 Columns 239 through 255 0.8433 0.7700 0.6967 0.6233 0.5500 0.4767 0.4033 0.3300 0.2567 0.1833 0.1100 0.0367 -0.0367 -0.1100 -0.1833 -0.2567 -0.3300 Columns 256 through 272 -0.4033 -0.4767 -0.5500 -0.6233 -0.6967 -0.7700 -0.8433 -0.9167 -0.9900 -1.0633 -1.1367 -1.2100 -1.2833 -1.3567 -1.4300 -1.5033 -1.5767 Columns 273 through 289 -1.6500 -1.7233 -1.7967 -1.8700 -1.9433 -2.0167 -2.0900 -2.1633 -2.2367 -2.3100 -2.3833 -2.4567 -2.5300 -2.6033 -2.6767 -2.7500 -2.8233 Columns 290 through 306 -2.8967 -2.9700 -3.0433 -3.1167 -3.1900 -3.2633 -3.3367 -3.4100 -3.4833 -3.5567 -3.6300 -3.6300 -3.6527 -3.6755 -3.6982 -3.7209 -3.7436 Columns 307 through 323 -3.7664 -3.7891 -3.8118 -3.8345 -3.8573 -3.8800 -3.9027 -3.9255 -3.9482 -3.9709 -3.9936 -4.0164 -4.0391 -4.0618 -4.0845 -4.1073 -4.1300 Columns 324 through 340 -4.1527 -4.1755 -4.1982 -4.2209 -4.2436 -4.2664 -4.2891 -4.3118 -4.3345 -4.3573 -4.3800 -4.4027 -4.4255 -4.4482 -4.4709 -4.4936 -4.5164 Columns 341 through 357 -4.5391 -4.5618 -4.5845 -4.6073 -4.6300 -4.6527 -4.6755 -4.6982 -4.7209 -4.7436 -4.7664 -4.7891 -4.8118 -4.8345 -4.8573 -4.8800 -4.9027 Columns 358 through 374 -4.9255 -4.9482 -4.9709 -4.9936 -5.0164 -5.0391 -5.0618 -5.0845 -5.1073 -5.1300 -5.1527 -5.1755 -5.1982 -5.2209 -5.2436 -5.2664 -5.2891 Columns 375 through 391 -5.3118 -5.3345 -5.3573 -5.3800 -5.4027 -5.4255 -5.4482 -5.4709 -5.4936 -5.5164 -5.5391 -5.5618 -5.5845 -5.6073 -5.6300 -5.6527 -5.6755 Columns 392 through 408 -5.6982 -5.7209 -5.7436 -5.7664 -5.7891 -5.8118 -5.8345 -5.8573 -5.8800 -5.8800 -5.8206 -5.7612 -5.7018 -5.6424 -5.5830 -5.5236 -5.4642 Columns 409 through 425 -5.4048 -5.3455 -5.2861 -5.2267 -5.1673 -5.1079 -5.0485 -4.9891 -4.9297 -4.8703 -4.8109 -4.7515 -4.6921 -4.6327 -4.5733 -4.5139 -4.4545 Columns 426 through 442 -4.3952 -4.3358 -4.2764 -4.2170 -4.1576 -4.0982 -4.0388 -3.9794 -3.9200 -3.8606 -3.8012 -3.7418 -3.6824 -3.6230 -3.5636 -3.5042 -3.4448 Columns 443 through 459 -3.3855 -3.3261 -3.2667 -3.2073 -3.1479 -3.0885 -3.0291 -2.9697 -2.9103 -2.8509 -2.7915 -2.7321 -2.6727 -2.6133 -2.5539 -2.4945 -2.4352 Columns 460 through 476 -2.3758 -2.3164 -2.2570 -2.1976 -2.1382 -2.0788 -2.0194 -1.9600 -1.9006 -1.8412 -1.7818 -1.7224 -1.6630 -1.6036 -1.5442 -1.4848 -1.4255 Columns 477 through 493 -1.3661 -1.3067 -1.2473 -1.1879 -1.1285 -1.0691 -1.0097 -0.9503 -0.8909 -0.8315 -0.7721 -0.7127 -0.6533 -0.5939 -0.5345 -0.4752 -0.4158 Columns 494 through 510 -0.3564 -0.2970 -0.2376 -0.1782 -0.1188 -0.0594 0 0 0.0594 0.1188 0.1782 0.2376 0.2970 0.3564 0.4158 0.4752 0.5345 Columns 511 through 527 0.5939 0.6533 0.7127 0.7721 0.8315 0.8909 0.9503 1.0097 1.0691 1.1285 1.1879 1.2473 1.3067 1.3661 1.4255 1.4848 1.5442 Columns 528 through 544 1.6036 1.6630 1.7224 1.7818 1.8412 1.9006 1.9600 2.0194 2.0788 2.1382 2.1976 2.2570 2.3164 2.3758 2.4352 2.4945 2.5539 Columns 545 through 561 2.6133 2.6727 2.7321 2.7915 2.8509 2.9103 2.9697 3.0291 3.0885 3.1479 3.2073 3.2667 3.3261 3.3855 3.4448 3.5042 3.5636 Columns 562 through 578 3.6230 3.6824 3.7418 3.8012 3.8606 3.9200 3.9794 4.0388 4.0982 4.1576 4.2170 4.2764 4.3358 4.3952 4.4545 4.5139 4.5733 Columns 579 through 595 4.6327 4.6921 4.7515 4.8109 4.8703 4.9297 4.9891 5.0485 5.1079 5.1673 5.2267 5.2861 5.3455 5.4048 5.4642 5.5236 5.5830 Columns 596 through 600 5.6424 5.7018 5.7612 5.8206 5.8800 pentagonY = Columns 1 through 17 6.1800 6.1369 6.0937 6.0506 6.0075 5.9643 5.9212 5.8781 5.8349 5.7918 5.7487 5.7056 5.6624 5.6193 5.5762 5.5330 5.4899 Columns 18 through 34 5.4468 5.4036 5.3605 5.3174 5.2742 5.2311 5.1880 5.1448 5.1017 5.0586 5.0155 4.9723 4.9292 4.8861 4.8429 4.7998 4.7567 Columns 35 through 51 4.7135 4.6704 4.6273 4.5841 4.5410 4.4979 4.4547 4.4116 4.3685 4.3254 4.2822 4.2391 4.1960 4.1528 4.1097 4.0666 4.0234 Columns 52 through 68 3.9803 3.9372 3.8940 3.8509 3.8078 3.7646 3.7215 3.6784 3.6353 3.5921 3.5490 3.5059 3.4627 3.4196 3.3765 3.3333 3.2902 Columns 69 through 85 3.2471 3.2039 3.1608 3.1177 3.0745 3.0314 2.9883 2.9452 2.9020 2.8589 2.8158 2.7726 2.7295 2.6864 2.6432 2.6001 2.5570 Columns 86 through 102 2.5138 2.4707 2.4276 2.3844 2.3413 2.2982 2.2551 2.2119 2.1688 2.1257 2.0825 2.0394 1.9963 1.9531 1.9100 1.9100 1.8402 Columns 103 through 119 1.7704 1.7006 1.6308 1.5610 1.4912 1.4214 1.3516 1.2818 1.2120 1.1422 1.0724 1.0026 0.9328 0.8630 0.7932 0.7234 0.6536 Columns 120 through 136 0.5838 0.5140 0.4442 0.3744 0.3046 0.2348 0.1651 0.0953 0.0255 -0.0443 -0.1141 -0.1839 -0.2537 -0.3235 -0.3933 -0.4631 -0.5329 Columns 137 through 153 -0.6027 -0.6725 -0.7423 -0.8121 -0.8819 -0.9517 -1.0215 -1.0913 -1.1611 -1.2309 -1.3007 -1.3705 -1.4403 -1.5101 -1.5799 -1.6497 -1.7195 Columns 154 through 170 -1.7893 -1.8591 -1.9289 -1.9987 -2.0685 -2.1383 -2.2081 -2.2779 -2.3477 -2.4175 -2.4873 -2.5571 -2.6269 -2.6967 -2.7665 -2.8363 -2.9061 Columns 171 through 187 -2.9759 -3.0457 -3.1155 -3.1853 -3.2551 -3.3248 -3.3946 -3.4644 -3.5342 -3.6040 -3.6738 -3.7436 -3.8134 -3.8832 -3.9530 -4.0228 -4.0926 Columns 188 through 204 -4.1624 -4.2322 -4.3020 -4.3718 -4.4416 -4.5114 -4.5812 -4.6510 -4.7208 -4.7906 -4.8604 -4.9302 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 Columns 205 through 221 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 Columns 222 through 238 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 Columns 239 through 255 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 -5.0000 Columns 256 through 272 -5.0000 -5.0000 -5.0000 -5.0000 -5.0...

4   Pass
p = [0,4.55; 4.28,1.44; 2.65,-3.59; -2.65,-3.59; -4.28,1.44]; cp = [0,0]; r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 0 0.0432 0.0865 0.1297 0.1729 0.2162 0.2594 0.3026 0.3459 0.3891 0.4323 0.4756 0.5188 0.5620 0.6053 0.6485 0.6917 Columns 18 through 34 0.7349 0.7782 0.8214 0.8646 0.9079 0.9511 0.9943 1.0376 1.0808 1.1240 1.1673 1.2105 1.2537 1.2970 1.3402 1.3834 1.4267 Columns 35 through 51 1.4699 1.5131 1.5564 1.5996 1.6428 1.6861 1.7293 1.7725 1.8158 1.8590 1.9022 1.9455 1.9887 2.0319 2.0752 2.1184 2.1616 Columns 52 through 68 2.2048 2.2481 2.2913 2.3345 2.3778 2.4210 2.4642 2.5075 2.5507 2.5939 2.6372 2.6804 2.7236 2.7669 2.8101 2.8533 2.8966 Columns 69 through 85 2.9398 2.9830 3.0263 3.0695 3.1127 3.1560 3.1992 3.2424 3.2857 3.3289 3.3721 3.4154 3.4586 3.5018 3.5451 3.5883 3.6315 Columns 86 through 102 3.6747 3.7180 3.7612 3.8044 3.8477 3.8909 3.9341 3.9774 4.0206 4.0638 4.1071 4.1503 4.1935 4.2368 4.2800 4.2800 4.2635 Columns 103 through 119 4.2471 4.2306 4.2141 4.1977 4.1812 4.1647 4.1483 4.1318 4.1154 4.0989 4.0824 4.0660 4.0495 4.0330 4.0166 4.0001 3.9836 Columns 120 through 136 3.9672 3.9507 3.9342 3.9178 3.9013 3.8848 3.8684 3.8519 3.8355 3.8190 3.8025 3.7861 3.7696 3.7531 3.7367 3.7202 3.7037 Columns 137 through 153 3.6873 3.6708 3.6543 3.6379 3.6214 3.6049 3.5885 3.5720 3.5556 3.5391 3.5226 3.5062 3.4897 3.4732 3.4568 3.4403 3.4238 Columns 154 through 170 3.4074 3.3909 3.3744 3.3580 3.3415 3.3251 3.3086 3.2921 3.2757 3.2592 3.2427 3.2263 3.2098 3.1933 3.1769 3.1604 3.1439 Columns 171 through 187 3.1275 3.1110 3.0945 3.0781 3.0616 3.0452 3.0287 3.0122 2.9958 2.9793 2.9628 2.9464 2.9299 2.9134 2.8970 2.8805 2.8640 Columns 188 through 204 2.8476 2.8311 2.8146 2.7982 2.7817 2.7653 2.7488 2.7323 2.7159 2.6994 2.6829 2.6665 2.6500 2.6500 2.5965 2.5429 2.4894 Columns 205 through 221 2.4359 2.3823 2.3288 2.2753 2.2217 2.1682 2.1146 2.0611 2.0076 1.9540 1.9005 1.8470 1.7934 1.7399 1.6864 1.6328 1.5793 Columns 222 through 238 1.5258 1.4722 1.4187 1.3652 1.3116 1.2581 1.2045 1.1510 1.0975 1.0439 0.9904 0.9369 0.8833 0.8298 0.7763 0.7227 0.6692 Columns 239 through 255 0.6157 0.5621 0.5086 0.4551 0.4015 0.3480 0.2944 0.2409 0.1874 0.1338 0.0803 0.0268 -0.0268 -0.0803 -0.1338 -0.1874 -0.2409 Columns 256 through 272 -0.2944 -0.3480 -0.4015 -0.4551 -0.5086 -0.5621 -0.6157 -0.6692 -0.7227 -0.7763 -0.8298 -0.8833 -0.9369 -0.9904 -1.0439 -1.0975 -1.1510 Columns 273 through 289 -1.2045 -1.2581 -1.3116 -1.3652 -1.4187 -1.4722 -1.5258 -1.5793 -1.6328 -1.6864 -1.7399 -1.7934 -1.8470 -1.9005 -1.9540 -2.0076 -2.0611 Columns 290 through 306 -2.1146 -2.1682 -2.2217 -2.2753 -2.3288 -2.3823 -2.4359 -2.4894 -2.5429 -2.5965 -2.6500 -2.6500 -2.6665 -2.6829 -2.6994 -2.7159 -2.7323 Columns 307 through 323 -2.7488 -2.7653 -2.7817 -2.7982 -2.8146 -2.8311 -2.8476 -2.8640 -2.8805 -2.8970 -2.9134 -2.9299 -2.9464 -2.9628 -2.9793 -2.9958 -3.0122 Columns 324 through 340 -3.0287 -3.0452 -3.0616 -3.0781 -3.0945 -3.1110 -3.1275 -3.1439 -3.1604 -3.1769 -3.1933 -3.2098 -3.2263 -3.2427 -3.2592 -3.2757 -3.2921 Columns 341 through 357 -3.3086 -3.3251 -3.3415 -3.3580 -3.3744 -3.3909 -3.4074 -3.4238 -3.4403 -3.4568 -3.4732 -3.4897 -3.5062 -3.5226 -3.5391 -3.5556 -3.5720 Columns 358 through 374 -3.5885 -3.6049 -3.6214 -3.6379 -3.6543 -3.6708 -3.6873 -3.7037 -3.7202 -3.7367 -3.7531 -3.7696 -3.7861 -3.8025 -3.8190 -3.8355 -3.8519 Columns 375 through 391 -3.8684 -3.8848 -3.9013 -3.9178 -3.9342 -3.9507 -3.9672 -3.9836 -4.0001 -4.0166 -4.0330 -4.0495 -4.0660 -4.0824 -4.0989 -4.1154 -4.1318 Columns 392 through 408 -4.1483 -4.1647 -4.1812 -4.1977 -4.2141 -4.2306 -4.2471 -4.2635 -4.2800 -4.2800 -4.2368 -4.1935 -4.1503 -4.1071 -4.0638 -4.0206 -3.9774 Columns 409 through 425 -3.9341 -3.8909 -3.8477 -3.8044 -3.7612 -3.7180 -3.6747 -3.6315 -3.5883 -3.5451 -3.5018 -3.4586 -3.4154 -3.3721 -3.3289 -3.2857 -3.2424 Columns 426 through 442 -3.1992 -3.1560 -3.1127 -3.0695 -3.0263 -2.9830 -2.9398 -2.8966 -2.8533 -2.8101 -2.7669 -2.7236 -2.6804 -2.6372 -2.5939 -2.5507 -2.5075 Columns 443 through 459 -2.4642 -2.4210 -2.3778 -2.3345 -2.2913 -2.2481 -2.2048 -2.1616 -2.1184 -2.0752 -2.0319 -1.9887 -1.9455 -1.9022 -1.8590 -1.8158 -1.7725 Columns 460 through 476 -1.7293 -1.6861 -1.6428 -1.5996 -1.5564 -1.5131 -1.4699 -1.4267 -1.3834 -1.3402 -1.2970 -1.2537 -1.2105 -1.1673 -1.1240 -1.0808 -1.0376 Columns 477 through 493 -0.9943 -0.9511 -0.9079 -0.8646 -0.8214 -0.7782 -0.7349 -0.6917 -0.6485 -0.6053 -0.5620 -0.5188 -0.4756 -0.4323 -0.3891 -0.3459 -0.3026 Columns 494 through 510 -0.2594 -0.2162 -0.1729 -0.1297 -0.0865 -0.0432 0 0 0.0432 0.0865 0.1297 0.1729 0.2162 0.2594 0.3026 0.3459 0.3891 Columns 511 through 527 0.4323 0.4756 0.5188 0.5620 0.6053 0.6485 0.6917 0.7349 0.7782 0.8214 0.8646 0.9079 0.9511 0.9943 1.0376 1.0808 1.1240 Columns 528 through 544 1.1673 1.2105 1.2537 1.2970 1.3402 1.3834 1.4267 1.4699 1.5131 1.5564 1.5996 1.6428 1.6861 1.7293 1.7725 1.8158 1.8590 Columns 545 through 561 1.9022 1.9455 1.9887 2.0319 2.0752 2.1184 2.1616 2.2048 2.2481 2.2913 2.3345 2.3778 2.4210 2.4642 2.5075 2.5507 2.5939 Columns 562 through 578 2.6372 2.6804 2.7236 2.7669 2.8101 2.8533 2.8966 2.9398 2.9830 3.0263 3.0695 3.1127 3.1560 3.1992 3.2424 3.2857 3.3289 Columns 579 through 595 3.3721 3.4154 3.4586 3.5018 3.5451 3.5883 3.6315 3.6747 3.7180 3.7612 3.8044 3.8477 3.8909 3.9341 3.9774 4.0206 4.0638 Columns 596 through 600 4.1071 4.1503 4.1935 4.2368 4.2800 pentagonY = Columns 1 through 17 4.5500 4.5186 4.4872 4.4558 4.4243 4.3929 4.3615 4.3301 4.2987 4.2673 4.2359 4.2044 4.1730 4.1416 4.1102 4.0788 4.0474 Columns 18 through 34 4.0160 3.9845 3.9531 3.9217 3.8903 3.8589 3.8275 3.7961 3.7646 3.7332 3.7018 3.6704 3.6390 3.6076 3.5762 3.5447 3.5133 Columns 35 through 51 3.4819 3.4505 3.4191 3.3877 3.3563 3.3248 3.2934 3.2620 3.2306 3.1992 3.1678 3.1364 3.1049 3.0735 3.0421 3.0107 2.9793 Columns 52 through 68 2.9479 2.9165 2.8851 2.8536 2.8222 2.7908 2.7594 2.7280 2.6966 2.6652 2.6337 2.6023 2.5709 2.5395 2.5081 2.4767 2.4453 Columns 69 through 85 2.4138 2.3824 2.3510 2.3196 2.2882 2.2568 2.2254 2.1939 2.1625 2.1311 2.0997 2.0683 2.0369 2.0055 1.9740 1.9426 1.9112 Columns 86 through 102 1.8798 1.8484 1.8170 1.7856 1.7541 1.7227 1.6913 1.6599 1.6285 1.5971 1.5657 1.5342 1.5028 1.4714 1.4400 1.4400 1.3892 Columns 103 through 119 1.3384 1.2876 1.2368 1.1860 1.1352 1.0843 1.0335 0.9827 0.9319 0.8811 0.8303 0.7795 0.7287 0.6779 0.6271 0.5763 0.5255 Columns 120 through 136 0.4746 0.4238 0.3730 0.3222 0.2714 0.2206 0.1698 0.1190 0.0682 0.0174 -0.0334 -0.0842 -0.1351 -0.1859 -0.2367 -0.2875 -0.3383 Columns 137 through 153 -0.3891 -0.4399 -0.4907 -0.5415 -0.5923 -0.6431 -0.6939 -0.7447 -0.7956 -0.8464 -0.8972 -0.9480 -0.9988 -1.0496 -1.1004 -1.1512 -1.2020 Columns 154 through 170 -1.2528 -1.3036 -1.3544 -1.4053 -1.4561 -1.5069 -1.5577 -1.6085 -1.6593 -1.7101 -1.7609 -1.8117 -1.8625 -1.9133 -1.9641 -2.0149 -2.0658 Columns 171 through 187 -2.1166 -2.1674 -2.2182 -2.2690 -2.3198 -2.3706 -2.4214 -2.4722 -2.5230 -2.5738 -2.6246 -2.6755 -2.7263 -2.7771 -2.8279 -2.8787 -2.9295 Columns 188 through 204 -2.9803 -3.0311 -3.0819 -3.1327 -3.1835 -3.2343 -3.2852 -3.3360 -3.3868 -3.4376 -3.4884 -3.5392 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 Columns 205 through 221 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 Columns 222 through 238 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 Columns 239 through 255 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 -3.5900 Columns 256 through 272 -3.5900 -3.5900 -3.5900 -3.5900 -3.5...

5   Pass
cp = [20,8]; p = [0,5; 4.76,1.55; 2.94,-4.05; -2.94,-4.05; -4.76,1.55] + repmat(cp,[5,1]); r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 20.0000 20.0481 20.0962 20.1442 20.1923 20.2404 20.2885 20.3366 20.3846 20.4327 20.4808 20.5289 20.5770 20.6251 20.6731 20.7212 20.7693 Columns 18 through 34 20.8174 20.8655 20.9135 20.9616 21.0097 21.0578 21.1059 21.1539 21.2020 21.2501 21.2982 21.3463 21.3943 21.4424 21.4905 21.5386 21.5867 Columns 35 through 51 21.6347 21.6828 21.7309 21.7790 21.8271 21.8752 21.9232 21.9713 22.0194 22.0675 22.1156 22.1636 22.2117 22.2598 22.3079 22.3560 22.4040 Columns 52 through 68 22.4521 22.5002 22.5483 22.5964 22.6444 22.6925 22.7406 22.7887 22.8368 22.8848 22.9329 22.9810 23.0291 23.0772 23.1253 23.1733 23.2214 Columns 69 through 85 23.2695 23.3176 23.3657 23.4137 23.4618 23.5099 23.5580 23.6061 23.6541 23.7022 23.7503 23.7984 23.8465 23.8945 23.9426 23.9907 24.0388 Columns 86 through 102 24.0869 24.1349 24.1830 24.2311 24.2792 24.3273 24.3754 24.4234 24.4715 24.5196 24.5677 24.6158 24.6638 24.7119 24.7600 24.7600 24.7416 Columns 103 through 119 24.7232 24.7048 24.6865 24.6681 24.6497 24.6313 24.6129 24.5945 24.5762 24.5578 24.5394 24.5210 24.5026 24.4842 24.4659 24.4475 24.4291 Columns 120 through 136 24.4107 24.3923 24.3739 24.3556 24.3372 24.3188 24.3004 24.2820 24.2636 24.2453 24.2269 24.2085 24.1901 24.1717 24.1533 24.1349 24.1166 Columns 137 through 153 24.0982 24.0798 24.0614 24.0430 24.0246 24.0063 23.9879 23.9695 23.9511 23.9327 23.9143 23.8960 23.8776 23.8592 23.8408 23.8224 23.8040 Columns 154 through 170 23.7857 23.7673 23.7489 23.7305 23.7121 23.6937 23.6754 23.6570 23.6386 23.6202 23.6018 23.5834 23.5651 23.5467 23.5283 23.5099 23.4915 Columns 171 through 187 23.4731 23.4547 23.4364 23.4180 23.3996 23.3812 23.3628 23.3444 23.3261 23.3077 23.2893 23.2709 23.2525 23.2341 23.2158 23.1974 23.1790 Columns 188 through 204 23.1606 23.1422 23.1238 23.1055 23.0871 23.0687 23.0503 23.0319 23.0135 22.9952 22.9768 22.9584 22.9400 22.9400 22.8806 22.8212 22.7618 Columns 205 through 221 22.7024 22.6430 22.5836 22.5242 22.4648 22.4055 22.3461 22.2867 22.2273 22.1679 22.1085 22.0491 21.9897 21.9303 21.8709 21.8115 21.7521 Columns 222 through 238 21.6927 21.6333 21.5739 21.5145 21.4552 21.3958 21.3364 21.2770 21.2176 21.1582 21.0988 21.0394 20.9800 20.9206 20.8612 20.8018 20.7424 Columns 239 through 255 20.6830 20.6236 20.5642 20.5048 20.4455 20.3861 20.3267 20.2673 20.2079 20.1485 20.0891 20.0297 19.9703 19.9109 19.8515 19.7921 19.7327 Columns 256 through 272 19.6733 19.6139 19.5545 19.4952 19.4358 19.3764 19.3170 19.2576 19.1982 19.1388 19.0794 19.0200 18.9606 18.9012 18.8418 18.7824 18.7230 Columns 273 through 289 18.6636 18.6042 18.5448 18.4855 18.4261 18.3667 18.3073 18.2479 18.1885 18.1291 18.0697 18.0103 17.9509 17.8915 17.8321 17.7727 17.7133 Columns 290 through 306 17.6539 17.5945 17.5352 17.4758 17.4164 17.3570 17.2976 17.2382 17.1788 17.1194 17.0600 17.0600 17.0416 17.0232 17.0048 16.9865 16.9681 Columns 307 through 323 16.9497 16.9313 16.9129 16.8945 16.8762 16.8578 16.8394 16.8210 16.8026 16.7842 16.7659 16.7475 16.7291 16.7107 16.6923 16.6739 16.6556 Columns 324 through 340 16.6372 16.6188 16.6004 16.5820 16.5636 16.5453 16.5269 16.5085 16.4901 16.4717 16.4533 16.4349 16.4166 16.3982 16.3798 16.3614 16.3430 Columns 341 through 357 16.3246 16.3063 16.2879 16.2695 16.2511 16.2327 16.2143 16.1960 16.1776 16.1592 16.1408 16.1224 16.1040 16.0857 16.0673 16.0489 16.0305 Columns 358 through 374 16.0121 15.9937 15.9754 15.9570 15.9386 15.9202 15.9018 15.8834 15.8651 15.8467 15.8283 15.8099 15.7915 15.7731 15.7547 15.7364 15.7180 Columns 375 through 391 15.6996 15.6812 15.6628 15.6444 15.6261 15.6077 15.5893 15.5709 15.5525 15.5341 15.5158 15.4974 15.4790 15.4606 15.4422 15.4238 15.4055 Columns 392 through 408 15.3871 15.3687 15.3503 15.3319 15.3135 15.2952 15.2768 15.2584 15.2400 15.2400 15.2881 15.3362 15.3842 15.4323 15.4804 15.5285 15.5766 Columns 409 through 425 15.6246 15.6727 15.7208 15.7689 15.8170 15.8651 15.9131 15.9612 16.0093 16.0574 16.1055 16.1535 16.2016 16.2497 16.2978 16.3459 16.3939 Columns 426 through 442 16.4420 16.4901 16.5382 16.5863 16.6343 16.6824 16.7305 16.7786 16.8267 16.8747 16.9228 16.9709 17.0190 17.0671 17.1152 17.1632 17.2113 Columns 443 through 459 17.2594 17.3075 17.3556 17.4036 17.4517 17.4998 17.5479 17.5960 17.6440 17.6921 17.7402 17.7883 17.8364 17.8844 17.9325 17.9806 18.0287 Columns 460 through 476 18.0768 18.1248 18.1729 18.2210 18.2691 18.3172 18.3653 18.4133 18.4614 18.5095 18.5576 18.6057 18.6537 18.7018 18.7499 18.7980 18.8461 Columns 477 through 493 18.8941 18.9422 18.9903 19.0384 19.0865 19.1345 19.1826 19.2307 19.2788 19.3269 19.3749 19.4230 19.4711 19.5192 19.5673 19.6154 19.6634 Columns 494 through 510 19.7115 19.7596 19.8077 19.8558 19.9038 19.9519 20.0000 20.0000 20.0481 20.0962 20.1442 20.1923 20.2404 20.2885 20.3366 20.3846 20.4327 Columns 511 through 527 20.4808 20.5289 20.5770 20.6251 20.6731 20.7212 20.7693 20.8174 20.8655 20.9135 20.9616 21.0097 21.0578 21.1059 21.1539 21.2020 21.2501 Columns 528 through 544 21.2982 21.3463 21.3943 21.4424 21.4905 21.5386 21.5867 21.6347 21.6828 21.7309 21.7790 21.8271 21.8752 21.9232 21.9713 22.0194 22.0675 Columns 545 through 561 22.1156 22.1636 22.2117 22.2598 22.3079 22.3560 22.4040 22.4521 22.5002 22.5483 22.5964 22.6444 22.6925 22.7406 22.7887 22.8368 22.8848 Columns 562 through 578 22.9329 22.9810 23.0291 23.0772 23.1253 23.1733 23.2214 23.2695 23.3176 23.3657 23.4137 23.4618 23.5099 23.5580 23.6061 23.6541 23.7022 Columns 579 through 595 23.7503 23.7984 23.8465 23.8945 23.9426 23.9907 24.0388 24.0869 24.1349 24.1830 24.2311 24.2792 24.3273 24.3754 24.4234 24.4715 24.5196 Columns 596 through 600 24.5677 24.6158 24.6638 24.7119 24.7600 pentagonY = Columns 1 through 17 13.0000 12.9652 12.9303 12.8955 12.8606 12.8258 12.7909 12.7561 12.7212 12.6864 12.6515 12.6167 12.5818 12.5470 12.5121 12.4773 12.4424 Columns 18 through 34 12.4076 12.3727 12.3379 12.3030 12.2682 12.2333 12.1985 12.1636 12.1288 12.0939 12.0591 12.0242 11.9894 11.9545 11.9197 11.8848 11.8500 Columns 35 through 51 11.8152 11.7803 11.7455 11.7106 11.6758 11.6409 11.6061 11.5712 11.5364 11.5015 11.4667 11.4318 11.3970 11.3621 11.3273 11.2924 11.2576 Columns 52 through 68 11.2227 11.1879 11.1530 11.1182 11.0833 11.0485 11.0136 10.9788 10.9439 10.9091 10.8742 10.8394 10.8045 10.7697 10.7348 10.7000 10.6652 Columns 69 through 85 10.6303 10.5955 10.5606 10.5258 10.4909 10.4561 10.4212 10.3864 10.3515 10.3167 10.2818 10.2470 10.2121 10.1773 10.1424 10.1076 10.0727 Columns 86 through 102 10.0379 10.0030 9.9682 9.9333 9.8985 9.8636 9.8288 9.7939 9.7591 9.7242 9.6894 9.6545 9.6197 9.5848 9.5500 9.5500 9.4934 Columns 103 through 119 9.4369 9.3803 9.3237 9.2672 9.2106 9.1540 9.0975 9.0409 8.9843 8.9278 8.8712 8.8146 8.7581 8.7015 8.6449 8.5884 8.5318 Columns 120 through 136 8.4753 8.4187 8.3621 8.3056 8.2490 8.1924 8.1359 8.0793 8.0227 7.9662 7.9096 7.8530 7.7965 7.7399 7.6833 7.6268 7.5702 Columns 137 through 153 7.5136 7.4571 7.4005 7.3439 7.2874 7.2308 7.1742 7.1177 7.0611 7.0045 6.9480 6.8914 6.8348 6.7783 6.7217 6.6652 6.6086 Columns 154 through 170 6.5520 6.4955 6.4389 6.3823 6.3258 6.2692 6.2126 6.1561 6.0995 6.0429 5.9864 5.9298 5.8732 5.8167 5.7601 5.7035 5.6470 Columns 171 through 187 5.5904 5.5338 5.4773 5.4207 5.3641 5.3076 5.2510 5.1944 5.1379 5.0813 5.0247 4.9682 4.9116 4.8551 4.7985 4.7419 4.6854 Columns 188 through 204 4.6288 4.5722 4.5157 4.4591 4.4025 4.3460 4.2894 4.2328 4.1763 4.1197 4.0631 4.0066 3.9500 3.9500 3.9500 3.9500 3.9500 Columns 205 through 221 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 Columns 222 through 238 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 Columns 239 through 255 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 3.9500 Columns 256 through 272 3.9500 3.9500 3.9500 3.9500 3.9...

6   Fail
p = [20,13.61; 25.40,9.69; 23.34,3.34; 16.66,3.34; 14.60,9.69]; cp = [20,8]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 20.0000 20.0545 20.1091 20.1636 20.2182 20.2727 20.3273 20.3818 20.4364 20.4909 20.5455 20.6000 20.6545 20.7091 20.7636 20.8182 20.8727 Columns 18 through 34 20.9273 20.9818 21.0364 21.0909 21.1455 21.2000 21.2545 21.3091 21.3636 21.4182 21.4727 21.5273 21.5818 21.6364 21.6909 21.7455 21.8000 Columns 35 through 51 21.8545 21.9091 21.9636 22.0182 22.0727 22.1273 22.1818 22.2364 22.2909 22.3455 22.4000 22.4545 22.5091 22.5636 22.6182 22.6727 22.7273 Columns 52 through 68 22.7818 22.8364 22.8909 22.9455 23.0000 23.0545 23.1091 23.1636 23.2182 23.2727 23.3273 23.3818 23.4364 23.4909 23.5455 23.6000 23.6545 Columns 69 through 85 23.7091 23.7636 23.8182 23.8727 23.9273 23.9818 24.0364 24.0909 24.1455 24.2000 24.2545 24.3091 24.3636 24.4182 24.4727 24.5273 24.5818 Columns 86 through 102 24.6364 24.6909 24.7455 24.8000 24.8545 24.9091 24.9636 25.0182 25.0727 25.1273 25.1818 25.2364 25.2909 25.3455 25.4000 25.4000 25.3792 Columns 103 through 119 25.3584 25.3376 25.3168 25.2960 25.2752 25.2543 25.2335 25.2127 25.1919 25.1711 25.1503 25.1295 25.1087 25.0879 25.0671 25.0463 25.0255 Columns 120 through 136 25.0046 24.9838 24.9630 24.9422 24.9214 24.9006 24.8798 24.8590 24.8382 24.8174 24.7966 24.7758 24.7549 24.7341 24.7133 24.6925 24.6717 Columns 137 through 153 24.6509 24.6301 24.6093 24.5885 24.5677 24.5469 24.5261 24.5053 24.4844 24.4636 24.4428 24.4220 24.4012 24.3804 24.3596 24.3388 24.3180 Columns 154 through 170 24.2972 24.2764 24.2556 24.2347 24.2139 24.1931 24.1723 24.1515 24.1307 24.1099 24.0891 24.0683 24.0475 24.0267 24.0059 23.9851 23.9642 Columns 171 through 187 23.9434 23.9226 23.9018 23.8810 23.8602 23.8394 23.8186 23.7978 23.7770 23.7562 23.7354 23.7145 23.6937 23.6729 23.6521 23.6313 23.6105 Columns 188 through 204 23.5897 23.5689 23.5481 23.5273 23.5065 23.4857 23.4648 23.4440 23.4232 23.4024 23.3816 23.3608 23.3400 23.3400 23.2725 23.2051 23.1376 Columns 205 through 221 23.0701 23.0026 22.9352 22.8677 22.8002 22.7327 22.6653 22.5978 22.5303 22.4628 22.3954 22.3279 22.2604 22.1929 22.1255 22.0580 21.9905 Columns 222 through 238 21.9230 21.8556 21.7881 21.7206 21.6531 21.5857 21.5182 21.4507 21.3832 21.3158 21.2483 21.1808 21.1133 21.0459 20.9784 20.9109 20.8434 Columns 239 through 255 20.7760 20.7085 20.6410 20.5735 20.5061 20.4386 20.3711 20.3036 20.2362 20.1687 20.1012 20.0337 19.9663 19.8988 19.8313 19.7638 19.6964 Columns 256 through 272 19.6289 19.5614 19.4939 19.4265 19.3590 19.2915 19.2240 19.1566 19.0891 19.0216 18.9541 18.8867 18.8192 18.7517 18.6842 18.6168 18.5493 Columns 273 through 289 18.4818 18.4143 18.3469 18.2794 18.2119 18.1444 18.0770 18.0095 17.9420 17.8745 17.8071 17.7396 17.6721 17.6046 17.5372 17.4697 17.4022 Columns 290 through 306 17.3347 17.2673 17.1998 17.1323 17.0648 16.9974 16.9299 16.8624 16.7949 16.7275 16.6600 16.6600 16.6392 16.6184 16.5976 16.5768 16.5560 Columns 307 through 323 16.5352 16.5143 16.4935 16.4727 16.4519 16.4311 16.4103 16.3895 16.3687 16.3479 16.3271 16.3063 16.2855 16.2646 16.2438 16.2230 16.2022 Columns 324 through 340 16.1814 16.1606 16.1398 16.1190 16.0982 16.0774 16.0566 16.0358 16.0149 15.9941 15.9733 15.9525 15.9317 15.9109 15.8901 15.8693 15.8485 Columns 341 through 357 15.8277 15.8069 15.7861 15.7653 15.7444 15.7236 15.7028 15.6820 15.6612 15.6404 15.6196 15.5988 15.5780 15.5572 15.5364 15.5156 15.4947 Columns 358 through 374 15.4739 15.4531 15.4323 15.4115 15.3907 15.3699 15.3491 15.3283 15.3075 15.2867 15.2659 15.2451 15.2242 15.2034 15.1826 15.1618 15.1410 Columns 375 through 391 15.1202 15.0994 15.0786 15.0578 15.0370 15.0162 14.9954 14.9745 14.9537 14.9329 14.9121 14.8913 14.8705 14.8497 14.8289 14.8081 14.7873 Columns 392 through 408 14.7665 14.7457 14.7248 14.7040 14.6832 14.6624 14.6416 14.6208 14.6000 14.6000 14.6545 14.7091 14.7636 14.8182 14.8727 14.9273 14.9818 Columns 409 through 425 15.0364 15.0909 15.1455 15.2000 15.2545 15.3091 15.3636 15.4182 15.4727 15.5273 15.5818 15.6364 15.6909 15.7455 15.8000 15.8545 15.9091 Columns 426 through 442 15.9636 16.0182 16.0727 16.1273 16.1818 16.2364 16.2909 16.3455 16.4000 16.4545 16.5091 16.5636 16.6182 16.6727 16.7273 16.7818 16.8364 Columns 443 through 459 16.8909 16.9455 17.0000 17.0545 17.1091 17.1636 17.2182 17.2727 17.3273 17.3818 17.4364 17.4909 17.5455 17.6000 17.6545 17.7091 17.7636 Columns 460 through 476 17.8182 17.8727 17.9273 17.9818 18.0364 18.0909 18.1455 18.2000 18.2545 18.3091 18.3636 18.4182 18.4727 18.5273 18.5818 18.6364 18.6909 Columns 477 through 493 18.7455 18.8000 18.8545 18.9091 18.9636 19.0182 19.0727 19.1273 19.1818 19.2364 19.2909 19.3455 19.4000 19.4545 19.5091 19.5636 19.6182 Columns 494 through 510 19.6727 19.7273 19.7818 19.8364 19.8909 19.9455 20.0000 20.0000 20.0545 20.1091 20.1636 20.2182 20.2727 20.3273 20.3818 20.4364 20.4909 Columns 511 through 527 20.5455 20.6000 20.6545 20.7091 20.7636 20.8182 20.8727 20.9273 20.9818 21.0364 21.0909 21.1455 21.2000 21.2545 21.3091 21.3636 21.4182 Columns 528 through 544 21.4727 21.5273 21.5818 21.6364 21.6909 21.7455 21.8000 21.8545 21.9091 21.9636 22.0182 22.0727 22.1273 22.1818 22.2364 22.2909 22.3455 Columns 545 through 561 22.4000 22.4545 22.5091 22.5636 22.6182 22.6727 22.7273 22.7818 22.8364 22.8909 22.9455 23.0000 23.0545 23.1091 23.1636 23.2182 23.2727 Columns 562 through 578 23.3273 23.3818 23.4364 23.4909 23.5455 23.6000 23.6545 23.7091 23.7636 23.8182 23.8727 23.9273 23.9818 24.0364 24.0909 24.1455 24.2000 Columns 579 through 595 24.2545 24.3091 24.3636 24.4182 24.4727 24.5273 24.5818 24.6364 24.6909 24.7455 24.8000 24.8545 24.9091 24.9636 25.0182 25.0727 25.1273 Columns 596 through 600 25.1818 25.2364 25.2909 25.3455 25.4000 pentagonY = Columns 1 through 17 13.6100 13.5704 13.5308 13.4912 13.4516 13.4120 13.3724 13.3328 13.2932 13.2536 13.2140 13.1744 13.1348 13.0953 13.0557 13.0161 12.9765 Columns 18 through 34 12.9369 12.8973 12.8577 12.8181 12.7785 12.7389 12.6993 12.6597 12.6201 12.5805 12.5409 12.5013 12.4617 12.4221 12.3825 12.3429 12.3033 Columns 35 through 51 12.2637 12.2241 12.1845 12.1449 12.1054 12.0658 12.0262 11.9866 11.9470 11.9074 11.8678 11.8282 11.7886 11.7490 11.7094 11.6698 11.6302 Columns 52 through 68 11.5906 11.5510 11.5114 11.4718 11.4322 11.3926 11.3530 11.3134 11.2738 11.2342 11.1946 11.1551 11.1155 11.0759 11.0363 10.9967 10.9571 Columns 69 through 85 10.9175 10.8779 10.8383 10.7987 10.7591 10.7195 10.6799 10.6403 10.6007 10.5611 10.5215 10.4819 10.4423 10.4027 10.3631 10.3235 10.2839 Columns 86 through 102 10.2443 10.2047 10.1652 10.1256 10.0860 10.0464 10.0068 9.9672 9.9276 9.8880 9.8484 9.8088 9.7692 9.7296 9.6900 9.6900 9.6259 Columns 103 through 119 9.5617 9.4976 9.4334 9.3693 9.3052 9.2410 9.1769 9.1127 9.0486 8.9844 8.9203 8.8562 8.7920 8.7279 8.6637 8.5996 8.5355 Columns 120 through 136 8.4713 8.4072 8.3430 8.2789 8.2147 8.1506 8.0865 8.0223 7.9582 7.8940 7.8299 7.7658 7.7016 7.6375 7.5733 7.5092 7.4451 Columns 137 through 153 7.3809 7.3168 7.2526 7.1885 7.1243 7.0602 6.9961 6.9319 6.8678 6.8036 6.7395 6.6754 6.6112 6.5471 6.4829 6.4188 6.3546 Columns 154 through 170 6.2905 6.2264 6.1622 6.0981 6.0339 5.9698 5.9057 5.8415 5.7774 5.7132 5.6491 5.5849 5.5208 5.4567 5.3925 5.3284 5.2642 Columns 171 through 187 5.2001 5.1360 5.0718 5.0077 4.9435 4.8794 4.8153 4.7511 4.6870 4.6228 4.5587 4.4945 4.4304 4.3663 4.3021 4.2380 4.1738 Columns 188 through 204 4.1097 4.0456 3.9814 3.9173 3.8531 3.7890 3.7248 3.6607 3.5966 3.5324 3.4683 3.4041 3.3400 3.3400 3.3400 3.3400 3.3400 Columns 205 through 221 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 Columns 222 through 238 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 Columns 239 through 255 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 3.3400 Columns 256 through 272 3.3400 3.3400 3.3400 3.3400 3.3...

Assertion failed.

7   Pass
p = [20,14.18; 25.88,9.91; 23.63,3.00; 16.37,3.00; 14.12,9.91]; cp = [20,8]; r = 5; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 20.0000 20.0594 20.1188 20.1782 20.2376 20.2970 20.3564 20.4158 20.4752 20.5345 20.5939 20.6533 20.7127 20.7721 20.8315 20.8909 20.9503 Columns 18 through 34 21.0097 21.0691 21.1285 21.1879 21.2473 21.3067 21.3661 21.4255 21.4848 21.5442 21.6036 21.6630 21.7224 21.7818 21.8412 21.9006 21.9600 Columns 35 through 51 22.0194 22.0788 22.1382 22.1976 22.2570 22.3164 22.3758 22.4352 22.4945 22.5539 22.6133 22.6727 22.7321 22.7915 22.8509 22.9103 22.9697 Columns 52 through 68 23.0291 23.0885 23.1479 23.2073 23.2667 23.3261 23.3855 23.4448 23.5042 23.5636 23.6230 23.6824 23.7418 23.8012 23.8606 23.9200 23.9794 Columns 69 through 85 24.0388 24.0982 24.1576 24.2170 24.2764 24.3358 24.3952 24.4545 24.5139 24.5733 24.6327 24.6921 24.7515 24.8109 24.8703 24.9297 24.9891 Columns 86 through 102 25.0485 25.1079 25.1673 25.2267 25.2861 25.3455 25.4048 25.4642 25.5236 25.5830 25.6424 25.7018 25.7612 25.8206 25.8800 25.8800 25.8573 Columns 103 through 119 25.8345 25.8118 25.7891 25.7664 25.7436 25.7209 25.6982 25.6755 25.6527 25.6300 25.6073 25.5845 25.5618 25.5391 25.5164 25.4936 25.4709 Columns 120 through 136 25.4482 25.4255 25.4027 25.3800 25.3573 25.3345 25.3118 25.2891 25.2664 25.2436 25.2209 25.1982 25.1755 25.1527 25.1300 25.1073 25.0845 Columns 137 through 153 25.0618 25.0391 25.0164 24.9936 24.9709 24.9482 24.9255 24.9027 24.8800 24.8573 24.8345 24.8118 24.7891 24.7664 24.7436 24.7209 24.6982 Columns 154 through 170 24.6755 24.6527 24.6300 24.6073 24.5845 24.5618 24.5391 24.5164 24.4936 24.4709 24.4482 24.4255 24.4027 24.3800 24.3573 24.3345 24.3118 Columns 171 through 187 24.2891 24.2664 24.2436 24.2209 24.1982 24.1755 24.1527 24.1300 24.1073 24.0845 24.0618 24.0391 24.0164 23.9936 23.9709 23.9482 23.9255 Columns 188 through 204 23.9027 23.8800 23.8573 23.8345 23.8118 23.7891 23.7664 23.7436 23.7209 23.6982 23.6755 23.6527 23.6300 23.6300 23.5567 23.4833 23.4100 Columns 205 through 221 23.3367 23.2633 23.1900 23.1167 23.0433 22.9700 22.8967 22.8233 22.7500 22.6767 22.6033 22.5300 22.4567 22.3833 22.3100 22.2367 22.1633 Columns 222 through 238 22.0900 22.0167 21.9433 21.8700 21.7967 21.7233 21.6500 21.5767 21.5033 21.4300 21.3567 21.2833 21.2100 21.1367 21.0633 20.9900 20.9167 Columns 239 through 255 20.8433 20.7700 20.6967 20.6233 20.5500 20.4767 20.4033 20.3300 20.2567 20.1833 20.1100 20.0367 19.9633 19.8900 19.8167 19.7433 19.6700 Columns 256 through 272 19.5967 19.5233 19.4500 19.3767 19.3033 19.2300 19.1567 19.0833 19.0100 18.9367 18.8633 18.7900 18.7167 18.6433 18.5700 18.4967 18.4233 Columns 273 through 289 18.3500 18.2767 18.2033 18.1300 18.0567 17.9833 17.9100 17.8367 17.7633 17.6900 17.6167 17.5433 17.4700 17.3967 17.3233 17.2500 17.1767 Columns 290 through 306 17.1033 17.0300 16.9567 16.8833 16.8100 16.7367 16.6633 16.5900 16.5167 16.4433 16.3700 16.3700 16.3473 16.3245 16.3018 16.2791 16.2564 Columns 307 through 323 16.2336 16.2109 16.1882 16.1655 16.1427 16.1200 16.0973 16.0745 16.0518 16.0291 16.0064 15.9836 15.9609 15.9382 15.9155 15.8927 15.8700 Columns 324 through 340 15.8473 15.8245 15.8018 15.7791 15.7564 15.7336 15.7109 15.6882 15.6655 15.6427 15.6200 15.5973 15.5745 15.5518 15.5291 15.5064 15.4836 Columns 341 through 357 15.4609 15.4382 15.4155 15.3927 15.3700 15.3473 15.3245 15.3018 15.2791 15.2564 15.2336 15.2109 15.1882 15.1655 15.1427 15.1200 15.0973 Columns 358 through 374 15.0745 15.0518 15.0291 15.0064 14.9836 14.9609 14.9382 14.9155 14.8927 14.8700 14.8473 14.8245 14.8018 14.7791 14.7564 14.7336 14.7109 Columns 375 through 391 14.6882 14.6655 14.6427 14.6200 14.5973 14.5745 14.5518 14.5291 14.5064 14.4836 14.4609 14.4382 14.4155 14.3927 14.3700 14.3473 14.3245 Columns 392 through 408 14.3018 14.2791 14.2564 14.2336 14.2109 14.1882 14.1655 14.1427 14.1200 14.1200 14.1794 14.2388 14.2982 14.3576 14.4170 14.4764 14.5358 Columns 409 through 425 14.5952 14.6545 14.7139 14.7733 14.8327 14.8921 14.9515 15.0109 15.0703 15.1297 15.1891 15.2485 15.3079 15.3673 15.4267 15.4861 15.5455 Columns 426 through 442 15.6048 15.6642 15.7236 15.7830 15.8424 15.9018 15.9612 16.0206 16.0800 16.1394 16.1988 16.2582 16.3176 16.3770 16.4364 16.4958 16.5552 Columns 443 through 459 16.6145 16.6739 16.7333 16.7927 16.8521 16.9115 16.9709 17.0303 17.0897 17.1491 17.2085 17.2679 17.3273 17.3867 17.4461 17.5055 17.5648 Columns 460 through 476 17.6242 17.6836 17.7430 17.8024 17.8618 17.9212 17.9806 18.0400 18.0994 18.1588 18.2182 18.2776 18.3370 18.3964 18.4558 18.5152 18.5745 Columns 477 through 493 18.6339 18.6933 18.7527 18.8121 18.8715 18.9309 18.9903 19.0497 19.1091 19.1685 19.2279 19.2873 19.3467 19.4061 19.4655 19.5248 19.5842 Columns 494 through 510 19.6436 19.7030 19.7624 19.8218 19.8812 19.9406 20.0000 20.0000 20.0594 20.1188 20.1782 20.2376 20.2970 20.3564 20.4158 20.4752 20.5345 Columns 511 through 527 20.5939 20.6533 20.7127 20.7721 20.8315 20.8909 20.9503 21.0097 21.0691 21.1285 21.1879 21.2473 21.3067 21.3661 21.4255 21.4848 21.5442 Columns 528 through 544 21.6036 21.6630 21.7224 21.7818 21.8412 21.9006 21.9600 22.0194 22.0788 22.1382 22.1976 22.2570 22.3164 22.3758 22.4352 22.4945 22.5539 Columns 545 through 561 22.6133 22.6727 22.7321 22.7915 22.8509 22.9103 22.9697 23.0291 23.0885 23.1479 23.2073 23.2667 23.3261 23.3855 23.4448 23.5042 23.5636 Columns 562 through 578 23.6230 23.6824 23.7418 23.8012 23.8606 23.9200 23.9794 24.0388 24.0982 24.1576 24.2170 24.2764 24.3358 24.3952 24.4545 24.5139 24.5733 Columns 579 through 595 24.6327 24.6921 24.7515 24.8109 24.8703 24.9297 24.9891 25.0485 25.1079 25.1673 25.2267 25.2861 25.3455 25.4048 25.4642 25.5236 25.5830 Columns 596 through 600 25.6424 25.7018 25.7612 25.8206 25.8800 pentagonY = Columns 1 through 17 14.1800 14.1369 14.0937 14.0506 14.0075 13.9643 13.9212 13.8781 13.8349 13.7918 13.7487 13.7056 13.6624 13.6193 13.5762 13.5330 13.4899 Columns 18 through 34 13.4468 13.4036 13.3605 13.3174 13.2742 13.2311 13.1880 13.1448 13.1017 13.0586 13.0155 12.9723 12.9292 12.8861 12.8429 12.7998 12.7567 Columns 35 through 51 12.7135 12.6704 12.6273 12.5841 12.5410 12.4979 12.4547 12.4116 12.3685 12.3254 12.2822 12.2391 12.1960 12.1528 12.1097 12.0666 12.0234 Columns 52 through 68 11.9803 11.9372 11.8940 11.8509 11.8078 11.7646 11.7215 11.6784 11.6353 11.5921 11.5490 11.5059 11.4627 11.4196 11.3765 11.3333 11.2902 Columns 69 through 85 11.2471 11.2039 11.1608 11.1177 11.0745 11.0314 10.9883 10.9452 10.9020 10.8589 10.8158 10.7726 10.7295 10.6864 10.6432 10.6001 10.5570 Columns 86 through 102 10.5138 10.4707 10.4276 10.3844 10.3413 10.2982 10.2551 10.2119 10.1688 10.1257 10.0825 10.0394 9.9963 9.9531 9.9100 9.9100 9.8402 Columns 103 through 119 9.7704 9.7006 9.6308 9.5610 9.4912 9.4214 9.3516 9.2818 9.2120 9.1422 9.0724 9.0026 8.9328 8.8630 8.7932 8.7234 8.6536 Columns 120 through 136 8.5838 8.5140 8.4442 8.3744 8.3046 8.2348 8.1651 8.0953 8.0255 7.9557 7.8859 7.8161 7.7463 7.6765 7.6067 7.5369 7.4671 Columns 137 through 153 7.3973 7.3275 7.2577 7.1879 7.1181 7.0483 6.9785 6.9087 6.8389 6.7691 6.6993 6.6295 6.5597 6.4899 6.4201 6.3503 6.2805 Columns 154 through 170 6.2107 6.1409 6.0711 6.0013 5.9315 5.8617 5.7919 5.7221 5.6523 5.5825 5.5127 5.4429 5.3731 5.3033 5.2335 5.1637 5.0939 Columns 171 through 187 5.0241 4.9543 4.8845 4.8147 4.7449 4.6752 4.6054 4.5356 4.4658 4.3960 4.3262 4.2564 4.1866 4.1168 4.0470 3.9772 3.9074 Columns 188 through 204 3.8376 3.7678 3.6980 3.6282 3.5584 3.4886 3.4188 3.3490 3.2792 3.2094 3.1396 3.0698 3.0000 3.0000 3.0000 3.0000 3.0000 Columns 205 through 221 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 Columns 222 through 238 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 Columns 239 through 255 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 3.0000 Columns 256 through 272 3.0000 3.0000 3.0000 3.0000 3.0...

8   Pass
cp = [20,8]; p = [0,6.58; 6.42,1.92; 3.97,-5.63; -3.97,-5.63; -6.42,1.92] + repmat(cp,[5,1]); r = 5; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 20.0000 20.0648 20.1297 20.1945 20.2594 20.3242 20.3891 20.4539 20.5188 20.5836 20.6485 20.7133 20.7782 20.8430 20.9079 20.9727 21.0376 Columns 18 through 34 21.1024 21.1673 21.2321 21.2970 21.3618 21.4267 21.4915 21.5564 21.6212 21.6861 21.7509 21.8158 21.8806 21.9455 22.0103 22.0752 22.1400 Columns 35 through 51 22.2048 22.2697 22.3345 22.3994 22.4642 22.5291 22.5939 22.6588 22.7236 22.7885 22.8533 22.9182 22.9830 23.0479 23.1127 23.1776 23.2424 Columns 52 through 68 23.3073 23.3721 23.4370 23.5018 23.5667 23.6315 23.6964 23.7612 23.8261 23.8909 23.9558 24.0206 24.0855 24.1503 24.2152 24.2800 24.3448 Columns 69 through 85 24.4097 24.4745 24.5394 24.6042 24.6691 24.7339 24.7988 24.8636 24.9285 24.9933 25.0582 25.1230 25.1879 25.2527 25.3176 25.3824 25.4473 Columns 86 through 102 25.5121 25.5770 25.6418 25.7067 25.7715 25.8364 25.9012 25.9661 26.0309 26.0958 26.1606 26.2255 26.2903 26.3552 26.4200 26.4200 26.3953 Columns 103 through 119 26.3705 26.3458 26.3210 26.2963 26.2715 26.2468 26.2220 26.1973 26.1725 26.1478 26.1230 26.0983 26.0735 26.0488 26.0240 25.9993 25.9745 Columns 120 through 136 25.9498 25.9251 25.9003 25.8756 25.8508 25.8261 25.8013 25.7766 25.7518 25.7271 25.7023 25.6776 25.6528 25.6281 25.6033 25.5786 25.5538 Columns 137 through 153 25.5291 25.5043 25.4796 25.4548 25.4301 25.4054 25.3806 25.3559 25.3311 25.3064 25.2816 25.2569 25.2321 25.2074 25.1826 25.1579 25.1331 Columns 154 through 170 25.1084 25.0836 25.0589 25.0341 25.0094 24.9846 24.9599 24.9352 24.9104 24.8857 24.8609 24.8362 24.8114 24.7867 24.7619 24.7372 24.7124 Columns 171 through 187 24.6877 24.6629 24.6382 24.6134 24.5887 24.5639 24.5392 24.5144 24.4897 24.4649 24.4402 24.4155 24.3907 24.3660 24.3412 24.3165 24.2917 Columns 188 through 204 24.2670 24.2422 24.2175 24.1927 24.1680 24.1432 24.1185 24.0937 24.0690 24.0442 24.0195 23.9947 23.9700 23.9700 23.8898 23.8096 23.7294 Columns 205 through 221 23.6492 23.5690 23.4888 23.4086 23.3284 23.2482 23.1680 23.0878 23.0076 22.9274 22.8472 22.7670 22.6868 22.6066 22.5264 22.4462 22.3660 Columns 222 through 238 22.2858 22.2056 22.1254 22.0452 21.9649 21.8847 21.8045 21.7243 21.6441 21.5639 21.4837 21.4035 21.3233 21.2431 21.1629 21.0827 21.0025 Columns 239 through 255 20.9223 20.8421 20.7619 20.6817 20.6015 20.5213 20.4411 20.3609 20.2807 20.2005 20.1203 20.0401 19.9599 19.8797 19.7995 19.7193 19.6391 Columns 256 through 272 19.5589 19.4787 19.3985 19.3183 19.2381 19.1579 19.0777 18.9975 18.9173 18.8371 18.7569 18.6767 18.5965 18.5163 18.4361 18.3559 18.2757 Columns 273 through 289 18.1955 18.1153 18.0351 17.9548 17.8746 17.7944 17.7142 17.6340 17.5538 17.4736 17.3934 17.3132 17.2330 17.1528 17.0726 16.9924 16.9122 Columns 290 through 306 16.8320 16.7518 16.6716 16.5914 16.5112 16.4310 16.3508 16.2706 16.1904 16.1102 16.0300 16.0300 16.0053 15.9805 15.9558 15.9310 15.9063 Columns 307 through 323 15.8815 15.8568 15.8320 15.8073 15.7825 15.7578 15.7330 15.7083 15.6835 15.6588 15.6340 15.6093 15.5845 15.5598 15.5351 15.5103 15.4856 Columns 324 through 340 15.4608 15.4361 15.4113 15.3866 15.3618 15.3371 15.3123 15.2876 15.2628 15.2381 15.2133 15.1886 15.1638 15.1391 15.1143 15.0896 15.0648 Columns 341 through 357 15.0401 15.0154 14.9906 14.9659 14.9411 14.9164 14.8916 14.8669 14.8421 14.8174 14.7926 14.7679 14.7431 14.7184 14.6936 14.6689 14.6441 Columns 358 through 374 14.6194 14.5946 14.5699 14.5452 14.5204 14.4957 14.4709 14.4462 14.4214 14.3967 14.3719 14.3472 14.3224 14.2977 14.2729 14.2482 14.2234 Columns 375 through 391 14.1987 14.1739 14.1492 14.1244 14.0997 14.0749 14.0502 14.0255 14.0007 13.9760 13.9512 13.9265 13.9017 13.8770 13.8522 13.8275 13.8027 Columns 392 through 408 13.7780 13.7532 13.7285 13.7037 13.6790 13.6542 13.6295 13.6047 13.5800 13.5800 13.6448 13.7097 13.7745 13.8394 13.9042 13.9691 14.0339 Columns 409 through 425 14.0988 14.1636 14.2285 14.2933 14.3582 14.4230 14.4879 14.5527 14.6176 14.6824 14.7473 14.8121 14.8770 14.9418 15.0067 15.0715 15.1364 Columns 426 through 442 15.2012 15.2661 15.3309 15.3958 15.4606 15.5255 15.5903 15.6552 15.7200 15.7848 15.8497 15.9145 15.9794 16.0442 16.1091 16.1739 16.2388 Columns 443 through 459 16.3036 16.3685 16.4333 16.4982 16.5630 16.6279 16.6927 16.7576 16.8224 16.8873 16.9521 17.0170 17.0818 17.1467 17.2115 17.2764 17.3412 Columns 460 through 476 17.4061 17.4709 17.5358 17.6006 17.6655 17.7303 17.7952 17.8600 17.9248 17.9897 18.0545 18.1194 18.1842 18.2491 18.3139 18.3788 18.4436 Columns 477 through 493 18.5085 18.5733 18.6382 18.7030 18.7679 18.8327 18.8976 18.9624 19.0273 19.0921 19.1570 19.2218 19.2867 19.3515 19.4164 19.4812 19.5461 Columns 494 through 510 19.6109 19.6758 19.7406 19.8055 19.8703 19.9352 20.0000 20.0000 20.0648 20.1297 20.1945 20.2594 20.3242 20.3891 20.4539 20.5188 20.5836 Columns 511 through 527 20.6485 20.7133 20.7782 20.8430 20.9079 20.9727 21.0376 21.1024 21.1673 21.2321 21.2970 21.3618 21.4267 21.4915 21.5564 21.6212 21.6861 Columns 528 through 544 21.7509 21.8158 21.8806 21.9455 22.0103 22.0752 22.1400 22.2048 22.2697 22.3345 22.3994 22.4642 22.5291 22.5939 22.6588 22.7236 22.7885 Columns 545 through 561 22.8533 22.9182 22.9830 23.0479 23.1127 23.1776 23.2424 23.3073 23.3721 23.4370 23.5018 23.5667 23.6315 23.6964 23.7612 23.8261 23.8909 Columns 562 through 578 23.9558 24.0206 24.0855 24.1503 24.2152 24.2800 24.3448 24.4097 24.4745 24.5394 24.6042 24.6691 24.7339 24.7988 24.8636 24.9285 24.9933 Columns 579 through 595 25.0582 25.1230 25.1879 25.2527 25.3176 25.3824 25.4473 25.5121 25.5770 25.6418 25.7067 25.7715 25.8364 25.9012 25.9661 26.0309 26.0958 Columns 596 through 600 26.1606 26.2255 26.2903 26.3552 26.4200 pentagonY = Columns 1 through 17 14.5800 14.5329 14.4859 14.4388 14.3917 14.3446 14.2976 14.2505 14.2034 14.1564 14.1093 14.0622 14.0152 13.9681 13.9210 13.8739 13.8269 Columns 18 through 34 13.7798 13.7327 13.6857 13.6386 13.5915 13.5444 13.4974 13.4503 13.4032 13.3562 13.3091 13.2620 13.2149 13.1679 13.1208 13.0737 13.0267 Columns 35 through 51 12.9796 12.9325 12.8855 12.8384 12.7913 12.7442 12.6972 12.6501 12.6030 12.5560 12.5089 12.4618 12.4147 12.3677 12.3206 12.2735 12.2265 Columns 52 through 68 12.1794 12.1323 12.0853 12.0382 11.9911 11.9440 11.8970 11.8499 11.8028 11.7558 11.7087 11.6616 11.6145 11.5675 11.5204 11.4733 11.4263 Columns 69 through 85 11.3792 11.3321 11.2851 11.2380 11.1909 11.1438 11.0968 11.0497 11.0026 10.9556 10.9085 10.8614 10.8143 10.7673 10.7202 10.6731 10.6261 Columns 86 through 102 10.5790 10.5319 10.4848 10.4378 10.3907 10.3436 10.2966 10.2495 10.2024 10.1554 10.1083 10.0612 10.0141 9.9671 9.9200 9.9200 9.8437 Columns 103 through 119 9.7675 9.6912 9.6149 9.5387 9.4624 9.3862 9.3099 9.2336 9.1574 9.0811 9.0048 8.9286 8.8523 8.7761 8.6998 8.6235 8.5473 Columns 120 through 136 8.4710 8.3947 8.3185 8.2422 8.1660 8.0897 8.0134 7.9372 7.8609 7.7846 7.7084 7.6321 7.5559 7.4796 7.4033 7.3271 7.2508 Columns 137 through 153 7.1745 7.0983 7.0220 6.9458 6.8695 6.7932 6.7170 6.6407 6.5644 6.4882 6.4119 6.3357 6.2594 6.1831 6.1069 6.0306 5.9543 Columns 154 through 170 5.8781 5.8018 5.7256 5.6493 5.5730 5.4968 5.4205 5.3442 5.2680 5.1917 5.1155 5.0392 4.9629 4.8867 4.8104 4.7341 4.6579 Columns 171 through 187 4.5816 4.5054 4.4291 4.3528 4.2766 4.2003 4.1240 4.0478 3.9715 3.8953 3.8190 3.7427 3.6665 3.5902 3.5139 3.4377 3.3614 Columns 188 through 204 3.2852 3.2089 3.1326 3.0564 2.9801 2.9038 2.8276 2.7513 2.6751 2.5988 2.5225 2.4463 2.3700 2.3700 2.3700 2.3700 2.3700 Columns 205 through 221 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 Columns 222 through 238 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 Columns 239 through 255 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 2.3700 Columns 256 through 272 2.3700 2.3700 2.3700 2.3700 2.3...

9   Pass
cp = [20,8]; p = [0,4.55; 4.28,1.44; 2.65,-3.59; -2.65,-3.59; -4.28,1.44] + repmat(cp,[5,1]); r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 20.0000 20.0432 20.0865 20.1297 20.1729 20.2162 20.2594 20.3026 20.3459 20.3891 20.4323 20.4756 20.5188 20.5620 20.6053 20.6485 20.6917 Columns 18 through 34 20.7349 20.7782 20.8214 20.8646 20.9079 20.9511 20.9943 21.0376 21.0808 21.1240 21.1673 21.2105 21.2537 21.2970 21.3402 21.3834 21.4267 Columns 35 through 51 21.4699 21.5131 21.5564 21.5996 21.6428 21.6861 21.7293 21.7725 21.8158 21.8590 21.9022 21.9455 21.9887 22.0319 22.0752 22.1184 22.1616 Columns 52 through 68 22.2048 22.2481 22.2913 22.3345 22.3778 22.4210 22.4642 22.5075 22.5507 22.5939 22.6372 22.6804 22.7236 22.7669 22.8101 22.8533 22.8966 Columns 69 through 85 22.9398 22.9830 23.0263 23.0695 23.1127 23.1560 23.1992 23.2424 23.2857 23.3289 23.3721 23.4154 23.4586 23.5018 23.5451 23.5883 23.6315 Columns 86 through 102 23.6747 23.7180 23.7612 23.8044 23.8477 23.8909 23.9341 23.9774 24.0206 24.0638 24.1071 24.1503 24.1935 24.2368 24.2800 24.2800 24.2635 Columns 103 through 119 24.2471 24.2306 24.2141 24.1977 24.1812 24.1647 24.1483 24.1318 24.1154 24.0989 24.0824 24.0660 24.0495 24.0330 24.0166 24.0001 23.9836 Columns 120 through 136 23.9672 23.9507 23.9342 23.9178 23.9013 23.8848 23.8684 23.8519 23.8355 23.8190 23.8025 23.7861 23.7696 23.7531 23.7367 23.7202 23.7037 Columns 137 through 153 23.6873 23.6708 23.6543 23.6379 23.6214 23.6049 23.5885 23.5720 23.5556 23.5391 23.5226 23.5062 23.4897 23.4732 23.4568 23.4403 23.4238 Columns 154 through 170 23.4074 23.3909 23.3744 23.3580 23.3415 23.3251 23.3086 23.2921 23.2757 23.2592 23.2427 23.2263 23.2098 23.1933 23.1769 23.1604 23.1439 Columns 171 through 187 23.1275 23.1110 23.0945 23.0781 23.0616 23.0452 23.0287 23.0122 22.9958 22.9793 22.9628 22.9464 22.9299 22.9134 22.8970 22.8805 22.8640 Columns 188 through 204 22.8476 22.8311 22.8146 22.7982 22.7817 22.7653 22.7488 22.7323 22.7159 22.6994 22.6829 22.6665 22.6500 22.6500 22.5965 22.5429 22.4894 Columns 205 through 221 22.4359 22.3823 22.3288 22.2753 22.2217 22.1682 22.1146 22.0611 22.0076 21.9540 21.9005 21.8470 21.7934 21.7399 21.6864 21.6328 21.5793 Columns 222 through 238 21.5258 21.4722 21.4187 21.3652 21.3116 21.2581 21.2045 21.1510 21.0975 21.0439 20.9904 20.9369 20.8833 20.8298 20.7763 20.7227 20.6692 Columns 239 through 255 20.6157 20.5621 20.5086 20.4551 20.4015 20.3480 20.2944 20.2409 20.1874 20.1338 20.0803 20.0268 19.9732 19.9197 19.8662 19.8126 19.7591 Columns 256 through 272 19.7056 19.6520 19.5985 19.5449 19.4914 19.4379 19.3843 19.3308 19.2773 19.2237 19.1702 19.1167 19.0631 19.0096 18.9561 18.9025 18.8490 Columns 273 through 289 18.7955 18.7419 18.6884 18.6348 18.5813 18.5278 18.4742 18.4207 18.3672 18.3136 18.2601 18.2066 18.1530 18.0995 18.0460 17.9924 17.9389 Columns 290 through 306 17.8854 17.8318 17.7783 17.7247 17.6712 17.6177 17.5641 17.5106 17.4571 17.4035 17.3500 17.3500 17.3335 17.3171 17.3006 17.2841 17.2677 Columns 307 through 323 17.2512 17.2347 17.2183 17.2018 17.1854 17.1689 17.1524 17.1360 17.1195 17.1030 17.0866 17.0701 17.0536 17.0372 17.0207 17.0042 16.9878 Columns 324 through 340 16.9713 16.9548 16.9384 16.9219 16.9055 16.8890 16.8725 16.8561 16.8396 16.8231 16.8067 16.7902 16.7737 16.7573 16.7408 16.7243 16.7079 Columns 341 through 357 16.6914 16.6749 16.6585 16.6420 16.6256 16.6091 16.5926 16.5762 16.5597 16.5432 16.5268 16.5103 16.4938 16.4774 16.4609 16.4444 16.4280 Columns 358 through 374 16.4115 16.3951 16.3786 16.3621 16.3457 16.3292 16.3127 16.2963 16.2798 16.2633 16.2469 16.2304 16.2139 16.1975 16.1810 16.1645 16.1481 Columns 375 through 391 16.1316 16.1152 16.0987 16.0822 16.0658 16.0493 16.0328 16.0164 15.9999 15.9834 15.9670 15.9505 15.9340 15.9176 15.9011 15.8846 15.8682 Columns 392 through 408 15.8517 15.8353 15.8188 15.8023 15.7859 15.7694 15.7529 15.7365 15.7200 15.7200 15.7632 15.8065 15.8497 15.8929 15.9362 15.9794 16.0226 Columns 409 through 425 16.0659 16.1091 16.1523 16.1956 16.2388 16.2820 16.3253 16.3685 16.4117 16.4549 16.4982 16.5414 16.5846 16.6279 16.6711 16.7143 16.7576 Columns 426 through 442 16.8008 16.8440 16.8873 16.9305 16.9737 17.0170 17.0602 17.1034 17.1467 17.1899 17.2331 17.2764 17.3196 17.3628 17.4061 17.4493 17.4925 Columns 443 through 459 17.5358 17.5790 17.6222 17.6655 17.7087 17.7519 17.7952 17.8384 17.8816 17.9248 17.9681 18.0113 18.0545 18.0978 18.1410 18.1842 18.2275 Columns 460 through 476 18.2707 18.3139 18.3572 18.4004 18.4436 18.4869 18.5301 18.5733 18.6166 18.6598 18.7030 18.7463 18.7895 18.8327 18.8760 18.9192 18.9624 Columns 477 through 493 19.0057 19.0489 19.0921 19.1354 19.1786 19.2218 19.2651 19.3083 19.3515 19.3947 19.4380 19.4812 19.5244 19.5677 19.6109 19.6541 19.6974 Columns 494 through 510 19.7406 19.7838 19.8271 19.8703 19.9135 19.9568 20.0000 20.0000 20.0432 20.0865 20.1297 20.1729 20.2162 20.2594 20.3026 20.3459 20.3891 Columns 511 through 527 20.4323 20.4756 20.5188 20.5620 20.6053 20.6485 20.6917 20.7349 20.7782 20.8214 20.8646 20.9079 20.9511 20.9943 21.0376 21.0808 21.1240 Columns 528 through 544 21.1673 21.2105 21.2537 21.2970 21.3402 21.3834 21.4267 21.4699 21.5131 21.5564 21.5996 21.6428 21.6861 21.7293 21.7725 21.8158 21.8590 Columns 545 through 561 21.9022 21.9455 21.9887 22.0319 22.0752 22.1184 22.1616 22.2048 22.2481 22.2913 22.3345 22.3778 22.4210 22.4642 22.5075 22.5507 22.5939 Columns 562 through 578 22.6372 22.6804 22.7236 22.7669 22.8101 22.8533 22.8966 22.9398 22.9830 23.0263 23.0695 23.1127 23.1560 23.1992 23.2424 23.2857 23.3289 Columns 579 through 595 23.3721 23.4154 23.4586 23.5018 23.5451 23.5883 23.6315 23.6747 23.7180 23.7612 23.8044 23.8477 23.8909 23.9341 23.9774 24.0206 24.0638 Columns 596 through 600 24.1071 24.1503 24.1935 24.2368 24.2800 pentagonY = Columns 1 through 17 12.5500 12.5186 12.4872 12.4558 12.4243 12.3929 12.3615 12.3301 12.2987 12.2673 12.2359 12.2044 12.1730 12.1416 12.1102 12.0788 12.0474 Columns 18 through 34 12.0160 11.9845 11.9531 11.9217 11.8903 11.8589 11.8275 11.7961 11.7646 11.7332 11.7018 11.6704 11.6390 11.6076 11.5762 11.5447 11.5133 Columns 35 through 51 11.4819 11.4505 11.4191 11.3877 11.3563 11.3248 11.2934 11.2620 11.2306 11.1992 11.1678 11.1364 11.1049 11.0735 11.0421 11.0107 10.9793 Columns 52 through 68 10.9479 10.9165 10.8851 10.8536 10.8222 10.7908 10.7594 10.7280 10.6966 10.6652 10.6337 10.6023 10.5709 10.5395 10.5081 10.4767 10.4453 Columns 69 through 85 10.4138 10.3824 10.3510 10.3196 10.2882 10.2568 10.2254 10.1939 10.1625 10.1311 10.0997 10.0683 10.0369 10.0055 9.9740 9.9426 9.9112 Columns 86 through 102 9.8798 9.8484 9.8170 9.7856 9.7541 9.7227 9.6913 9.6599 9.6285 9.5971 9.5657 9.5342 9.5028 9.4714 9.4400 9.4400 9.3892 Columns 103 through 119 9.3384 9.2876 9.2368 9.1860 9.1352 9.0843 9.0335 8.9827 8.9319 8.8811 8.8303 8.7795 8.7287 8.6779 8.6271 8.5763 8.5255 Columns 120 through 136 8.4746 8.4238 8.3730 8.3222 8.2714 8.2206 8.1698 8.1190 8.0682 8.0174 7.9666 7.9158 7.8649 7.8141 7.7633 7.7125 7.6617 Columns 137 through 153 7.6109 7.5601 7.5093 7.4585 7.4077 7.3569 7.3061 7.2553 7.2044 7.1536 7.1028 7.0520 7.0012 6.9504 6.8996 6.8488 6.7980 Columns 154 through 170 6.7472 6.6964 6.6456 6.5947 6.5439 6.4931 6.4423 6.3915 6.3407 6.2899 6.2391 6.1883 6.1375 6.0867 6.0359 5.9851 5.9342 Columns 171 through 187 5.8834 5.8326 5.7818 5.7310 5.6802 5.6294 5.5786 5.5278 5.4770 5.4262 5.3754 5.3245 5.2737 5.2229 5.1721 5.1213 5.0705 Columns 188 through 204 5.0197 4.9689 4.9181 4.8673 4.8165 4.7657 4.7148 4.6640 4.6132 4.5624 4.5116 4.4608 4.4100 4.4100 4.4100 4.4100 4.4100 Columns 205 through 221 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 Columns 222 through 238 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 Columns 239 through 255 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 4.4100 Columns 256 through 272 4.4100 4.4100 4.4100 4.4100 4.4...

10   Pass
p = [23.66,11.42; 24.37,5.58; 19.05,3.10; 15.04,7.40; 17.89,12.54]; cp = [20,8]; r = 5; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 23.6600 23.6672 23.6743 23.6815 23.6887 23.6959 23.7030 23.7102 23.7174 23.7245 23.7317 23.7389 23.7461 23.7532 23.7604 23.7676 23.7747 Columns 18 through 34 23.7819 23.7891 23.7963 23.8034 23.8106 23.8178 23.8249 23.8321 23.8393 23.8465 23.8536 23.8608 23.8680 23.8752 23.8823 23.8895 23.8967 Columns 35 through 51 23.9038 23.9110 23.9182 23.9254 23.9325 23.9397 23.9469 23.9540 23.9612 23.9684 23.9756 23.9827 23.9899 23.9971 24.0042 24.0114 24.0186 Columns 52 through 68 24.0258 24.0329 24.0401 24.0473 24.0544 24.0616 24.0688 24.0760 24.0831 24.0903 24.0975 24.1046 24.1118 24.1190 24.1262 24.1333 24.1405 Columns 69 through 85 24.1477 24.1548 24.1620 24.1692 24.1764 24.1835 24.1907 24.1979 24.2051 24.2122 24.2194 24.2266 24.2337 24.2409 24.2481 24.2553 24.2624 Columns 86 through 102 24.2696 24.2768 24.2839 24.2911 24.2983 24.3055 24.3126 24.3198 24.3270 24.3341 24.3413 24.3485 24.3557 24.3628 24.3700 24.3700 24.3163 Columns 103 through 119 24.2625 24.2088 24.1551 24.1013 24.0476 23.9938 23.9401 23.8864 23.8326 23.7789 23.7252 23.6714 23.6177 23.5639 23.5102 23.4565 23.4027 Columns 120 through 136 23.3490 23.2953 23.2415 23.1878 23.1340 23.0803 23.0266 22.9728 22.9191 22.8654 22.8116 22.7579 22.7041 22.6504 22.5967 22.5429 22.4892 Columns 137 through 153 22.4355 22.3817 22.3280 22.2742 22.2205 22.1668 22.1130 22.0593 22.0056 21.9518 21.8981 21.8443 21.7906 21.7369 21.6831 21.6294 21.5757 Columns 154 through 170 21.5219 21.4682 21.4144 21.3607 21.3070 21.2532 21.1995 21.1458 21.0920 21.0383 20.9845 20.9308 20.8771 20.8233 20.7696 20.7159 20.6621 Columns 171 through 187 20.6084 20.5546 20.5009 20.4472 20.3934 20.3397 20.2860 20.2322 20.1785 20.1247 20.0710 20.0173 19.9635 19.9098 19.8561 19.8023 19.7486 Columns 188 through 204 19.6948 19.6411 19.5874 19.5336 19.4799 19.4262 19.3724 19.3187 19.2649 19.2112 19.1575 19.1037 19.0500 19.0500 19.0095 18.9690 18.9285 Columns 205 through 221 18.8880 18.8475 18.8070 18.7665 18.7260 18.6855 18.6449 18.6044 18.5639 18.5234 18.4829 18.4424 18.4019 18.3614 18.3209 18.2804 18.2399 Columns 222 through 238 18.1994 18.1589 18.1184 18.0779 18.0374 17.9969 17.9564 17.9159 17.8754 17.8348 17.7943 17.7538 17.7133 17.6728 17.6323 17.5918 17.5513 Columns 239 through 255 17.5108 17.4703 17.4298 17.3893 17.3488 17.3083 17.2678 17.2273 17.1868 17.1463 17.1058 17.0653 17.0247 16.9842 16.9437 16.9032 16.8627 Columns 256 through 272 16.8222 16.7817 16.7412 16.7007 16.6602 16.6197 16.5792 16.5387 16.4982 16.4577 16.4172 16.3767 16.3362 16.2957 16.2552 16.2146 16.1741 Columns 273 through 289 16.1336 16.0931 16.0526 16.0121 15.9716 15.9311 15.8906 15.8501 15.8096 15.7691 15.7286 15.6881 15.6476 15.6071 15.5666 15.5261 15.4856 Columns 290 through 306 15.4451 15.4045 15.3640 15.3235 15.2830 15.2425 15.2020 15.1615 15.1210 15.0805 15.0400 15.0400 15.0688 15.0976 15.1264 15.1552 15.1839 Columns 307 through 323 15.2127 15.2415 15.2703 15.2991 15.3279 15.3567 15.3855 15.4142 15.4430 15.4718 15.5006 15.5294 15.5582 15.5870 15.6158 15.6445 15.6733 Columns 324 through 340 15.7021 15.7309 15.7597 15.7885 15.8173 15.8461 15.8748 15.9036 15.9324 15.9612 15.9900 16.0188 16.0476 16.0764 16.1052 16.1339 16.1627 Columns 341 through 357 16.1915 16.2203 16.2491 16.2779 16.3067 16.3355 16.3642 16.3930 16.4218 16.4506 16.4794 16.5082 16.5370 16.5658 16.5945 16.6233 16.6521 Columns 358 through 374 16.6809 16.7097 16.7385 16.7673 16.7961 16.8248 16.8536 16.8824 16.9112 16.9400 16.9688 16.9976 17.0264 17.0552 17.0839 17.1127 17.1415 Columns 375 through 391 17.1703 17.1991 17.2279 17.2567 17.2855 17.3142 17.3430 17.3718 17.4006 17.4294 17.4582 17.4870 17.5158 17.5445 17.5733 17.6021 17.6309 Columns 392 through 408 17.6597 17.6885 17.7173 17.7461 17.7748 17.8036 17.8324 17.8612 17.8900 17.8900 17.9483 18.0066 18.0648 18.1231 18.1814 18.2397 18.2980 Columns 409 through 425 18.3563 18.4145 18.4728 18.5311 18.5894 18.6477 18.7060 18.7642 18.8225 18.8808 18.9391 18.9974 19.0557 19.1139 19.1722 19.2305 19.2888 Columns 426 through 442 19.3471 19.4054 19.4636 19.5219 19.5802 19.6385 19.6968 19.7551 19.8133 19.8716 19.9299 19.9882 20.0465 20.1047 20.1630 20.2213 20.2796 Columns 443 through 459 20.3379 20.3962 20.4544 20.5127 20.5710 20.6293 20.6876 20.7459 20.8041 20.8624 20.9207 20.9790 21.0373 21.0956 21.1538 21.2121 21.2704 Columns 460 through 476 21.3287 21.3870 21.4453 21.5035 21.5618 21.6201 21.6784 21.7367 21.7949 21.8532 21.9115 21.9698 22.0281 22.0864 22.1446 22.2029 22.2612 Columns 477 through 493 22.3195 22.3778 22.4361 22.4943 22.5526 22.6109 22.6692 22.7275 22.7858 22.8440 22.9023 22.9606 23.0189 23.0772 23.1355 23.1937 23.2520 Columns 494 through 510 23.3103 23.3686 23.4269 23.4852 23.5434 23.6017 23.6600 23.6600 23.6672 23.6743 23.6815 23.6887 23.6959 23.7030 23.7102 23.7174 23.7245 Columns 511 through 527 23.7317 23.7389 23.7461 23.7532 23.7604 23.7676 23.7747 23.7819 23.7891 23.7963 23.8034 23.8106 23.8178 23.8249 23.8321 23.8393 23.8465 Columns 528 through 544 23.8536 23.8608 23.8680 23.8752 23.8823 23.8895 23.8967 23.9038 23.9110 23.9182 23.9254 23.9325 23.9397 23.9469 23.9540 23.9612 23.9684 Columns 545 through 561 23.9756 23.9827 23.9899 23.9971 24.0042 24.0114 24.0186 24.0258 24.0329 24.0401 24.0473 24.0544 24.0616 24.0688 24.0760 24.0831 24.0903 Columns 562 through 578 24.0975 24.1046 24.1118 24.1190 24.1262 24.1333 24.1405 24.1477 24.1548 24.1620 24.1692 24.1764 24.1835 24.1907 24.1979 24.2051 24.2122 Columns 579 through 595 24.2194 24.2266 24.2337 24.2409 24.2481 24.2553 24.2624 24.2696 24.2768 24.2839 24.2911 24.2983 24.3055 24.3126 24.3198 24.3270 24.3341 Columns 596 through 600 24.3413 24.3485 24.3557 24.3628 24.3700 pentagonY = Columns 1 through 17 11.4200 11.3610 11.3020 11.2430 11.1840 11.1251 11.0661 11.0071 10.9481 10.8891 10.8301 10.7711 10.7121 10.6531 10.5941 10.5352 10.4762 Columns 18 through 34 10.4172 10.3582 10.2992 10.2402 10.1812 10.1222 10.0632 10.0042 9.9453 9.8863 9.8273 9.7683 9.7093 9.6503 9.5913 9.5323 9.4733 Columns 35 through 51 9.4143 9.3554 9.2964 9.2374 9.1784 9.1194 9.0604 9.0014 8.9424 8.8834 8.8244 8.7655 8.7065 8.6475 8.5885 8.5295 8.4705 Columns 52 through 68 8.4115 8.3525 8.2935 8.2345 8.1756 8.1166 8.0576 7.9986 7.9396 7.8806 7.8216 7.7626 7.7036 7.6446 7.5857 7.5267 7.4677 Columns 69 through 85 7.4087 7.3497 7.2907 7.2317 7.1727 7.1137 7.0547 6.9958 6.9368 6.8778 6.8188 6.7598 6.7008 6.6418 6.5828 6.5238 6.4648 Columns 86 through 102 6.4059 6.3469 6.2879 6.2289 6.1699 6.1109 6.0519 5.9929 5.9339 5.8749 5.8160 5.7570 5.6980 5.6390 5.5800 5.5800 5.5549 Columns 103 through 119 5.5299 5.5048 5.4798 5.4547 5.4297 5.4046 5.3796 5.3545 5.3295 5.3044 5.2794 5.2543 5.2293 5.2042 5.1792 5.1541 5.1291 Columns 120 through 136 5.1040 5.0790 5.0539 5.0289 5.0038 4.9788 4.9537 4.9287 4.9036 4.8786 4.8535 4.8285 4.8034 4.7784 4.7533 4.7283 4.7032 Columns 137 through 153 4.6782 4.6531 4.6281 4.6030 4.5780 4.5529 4.5279 4.5028 4.4778 4.4527 4.4277 4.4026 4.3776 4.3525 4.3275 4.3024 4.2774 Columns 154 through 170 4.2523 4.2273 4.2022 4.1772 4.1521 4.1271 4.1020 4.0770 4.0519 4.0269 4.0018 3.9768 3.9517 3.9267 3.9016 3.8766 3.8515 Columns 171 through 187 3.8265 3.8014 3.7764 3.7513 3.7263 3.7012 3.6762 3.6511 3.6261 3.6010 3.5760 3.5509 3.5259 3.5008 3.4758 3.4507 3.4257 Columns 188 through 204 3.4006 3.3756 3.3505 3.3255 3.3004 3.2754 3.2503 3.2253 3.2002 3.1752 3.1501 3.1251 3.1000 3.1000 3.1434 3.1869 3.2303 Columns 205 through 221 3.2737 3.3172 3.3606 3.4040 3.4475 3.4909 3.5343 3.5778 3.6212 3.6646 3.7081 3.7515 3.7949 3.8384 3.8818 3.9253 3.9687 Columns 222 through 238 4.0121 4.0556 4.0990 4.1424 4.1859 4.2293 4.2727 4.3162 4.3596 4.4030 4.4465 4.4899 4.5333 4.5768 4.6202 4.6636 4.7071 Columns 239 through 255 4.7505 4.7939 4.8374 4.8808 4.9242 4.9677 5.0111 5.0545 5.0980 5.1414 5.1848 5.2283 5.2717 5.3152 5.3586 5.4020 5.4455 Columns 256 through 272 5.4889 5.5323 5.5758 5.6192 5.6...

11   Pass
p = [25.01,12.47; 25.98,4.58; 18.78,1.23; 13.37,7.03; 17.22,13.97]; cp = [20,8]; r = 5; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 25.0100 25.0198 25.0296 25.0394 25.0492 25.0590 25.0688 25.0786 25.0884 25.0982 25.1080 25.1178 25.1276 25.1374 25.1472 25.1570 25.1668 Columns 18 through 34 25.1766 25.1864 25.1962 25.2060 25.2158 25.2256 25.2354 25.2452 25.2549 25.2647 25.2745 25.2843 25.2941 25.3039 25.3137 25.3235 25.3333 Columns 35 through 51 25.3431 25.3529 25.3627 25.3725 25.3823 25.3921 25.4019 25.4117 25.4215 25.4313 25.4411 25.4509 25.4607 25.4705 25.4803 25.4901 25.4999 Columns 52 through 68 25.5097 25.5195 25.5293 25.5391 25.5489 25.5587 25.5685 25.5783 25.5881 25.5979 25.6077 25.6175 25.6273 25.6371 25.6469 25.6567 25.6665 Columns 69 through 85 25.6763 25.6861 25.6959 25.7057 25.7155 25.7253 25.7351 25.7448 25.7546 25.7644 25.7742 25.7840 25.7938 25.8036 25.8134 25.8232 25.8330 Columns 86 through 102 25.8428 25.8526 25.8624 25.8722 25.8820 25.8918 25.9016 25.9114 25.9212 25.9310 25.9408 25.9506 25.9604 25.9702 25.9800 25.9800 25.9073 Columns 103 through 119 25.8345 25.7618 25.6891 25.6164 25.5436 25.4709 25.3982 25.3255 25.2527 25.1800 25.1073 25.0345 24.9618 24.8891 24.8164 24.7436 24.6709 Columns 120 through 136 24.5982 24.5255 24.4527 24.3800 24.3073 24.2345 24.1618 24.0891 24.0164 23.9436 23.8709 23.7982 23.7255 23.6527 23.5800 23.5073 23.4345 Columns 137 through 153 23.3618 23.2891 23.2164 23.1436 23.0709 22.9982 22.9255 22.8527 22.7800 22.7073 22.6345 22.5618 22.4891 22.4164 22.3436 22.2709 22.1982 Columns 154 through 170 22.1255 22.0527 21.9800 21.9073 21.8345 21.7618 21.6891 21.6164 21.5436 21.4709 21.3982 21.3255 21.2527 21.1800 21.1073 21.0345 20.9618 Columns 171 through 187 20.8891 20.8164 20.7436 20.6709 20.5982 20.5255 20.4527 20.3800 20.3073 20.2345 20.1618 20.0891 20.0164 19.9436 19.8709 19.7982 19.7255 Columns 188 through 204 19.6527 19.5800 19.5073 19.4345 19.3618 19.2891 19.2164 19.1436 19.0709 18.9982 18.9255 18.8527 18.7800 18.7800 18.7254 18.6707 18.6161 Columns 205 through 221 18.5614 18.5068 18.4521 18.3975 18.3428 18.2882 18.2335 18.1789 18.1242 18.0696 18.0149 17.9603 17.9057 17.8510 17.7964 17.7417 17.6871 Columns 222 through 238 17.6324 17.5778 17.5231 17.4685 17.4138 17.3592 17.3045 17.2499 17.1953 17.1406 17.0860 17.0313 16.9767 16.9220 16.8674 16.8127 16.7581 Columns 239 through 255 16.7034 16.6488 16.5941 16.5395 16.4848 16.4302 16.3756 16.3209 16.2663 16.2116 16.1570 16.1023 16.0477 15.9930 15.9384 15.8837 15.8291 Columns 256 through 272 15.7744 15.7198 15.6652 15.6105 15.5559 15.5012 15.4466 15.3919 15.3373 15.2826 15.2280 15.1733 15.1187 15.0640 15.0094 14.9547 14.9001 Columns 273 through 289 14.8455 14.7908 14.7362 14.6815 14.6269 14.5722 14.5176 14.4629 14.4083 14.3536 14.2990 14.2443 14.1897 14.1351 14.0804 14.0258 13.9711 Columns 290 through 306 13.9165 13.8618 13.8072 13.7525 13.6979 13.6432 13.5886 13.5339 13.4793 13.4246 13.3700 13.3700 13.4089 13.4478 13.4867 13.5256 13.5644 Columns 307 through 323 13.6033 13.6422 13.6811 13.7200 13.7589 13.7978 13.8367 13.8756 13.9144 13.9533 13.9922 14.0311 14.0700 14.1089 14.1478 14.1867 14.2256 Columns 324 through 340 14.2644 14.3033 14.3422 14.3811 14.4200 14.4589 14.4978 14.5367 14.5756 14.6144 14.6533 14.6922 14.7311 14.7700 14.8089 14.8478 14.8867 Columns 341 through 357 14.9256 14.9644 15.0033 15.0422 15.0811 15.1200 15.1589 15.1978 15.2367 15.2756 15.3144 15.3533 15.3922 15.4311 15.4700 15.5089 15.5478 Columns 358 through 374 15.5867 15.6256 15.6644 15.7033 15.7422 15.7811 15.8200 15.8589 15.8978 15.9367 15.9756 16.0144 16.0533 16.0922 16.1311 16.1700 16.2089 Columns 375 through 391 16.2478 16.2867 16.3256 16.3644 16.4033 16.4422 16.4811 16.5200 16.5589 16.5978 16.6367 16.6756 16.7144 16.7533 16.7922 16.8311 16.8700 Columns 392 through 408 16.9089 16.9478 16.9867 17.0256 17.0644 17.1033 17.1422 17.1811 17.2200 17.2200 17.2987 17.3774 17.4561 17.5347 17.6134 17.6921 17.7708 Columns 409 through 425 17.8495 17.9282 18.0069 18.0856 18.1642 18.2429 18.3216 18.4003 18.4790 18.5577 18.6364 18.7151 18.7937 18.8724 18.9511 19.0298 19.1085 Columns 426 through 442 19.1872 19.2659 19.3445 19.4232 19.5019 19.5806 19.6593 19.7380 19.8167 19.8954 19.9740 20.0527 20.1314 20.2101 20.2888 20.3675 20.4462 Columns 443 through 459 20.5248 20.6035 20.6822 20.7609 20.8396 20.9183 20.9970 21.0757 21.1543 21.2330 21.3117 21.3904 21.4691 21.5478 21.6265 21.7052 21.7838 Columns 460 through 476 21.8625 21.9412 22.0199 22.0986 22.1773 22.2560 22.3346 22.4133 22.4920 22.5707 22.6494 22.7281 22.8068 22.8855 22.9641 23.0428 23.1215 Columns 477 through 493 23.2002 23.2789 23.3576 23.4363 23.5149 23.5936 23.6723 23.7510 23.8297 23.9084 23.9871 24.0658 24.1444 24.2231 24.3018 24.3805 24.4592 Columns 494 through 510 24.5379 24.6166 24.6953 24.7739 24.8526 24.9313 25.0100 25.0100 25.0198 25.0296 25.0394 25.0492 25.0590 25.0688 25.0786 25.0884 25.0982 Columns 511 through 527 25.1080 25.1178 25.1276 25.1374 25.1472 25.1570 25.1668 25.1766 25.1864 25.1962 25.2060 25.2158 25.2256 25.2354 25.2452 25.2549 25.2647 Columns 528 through 544 25.2745 25.2843 25.2941 25.3039 25.3137 25.3235 25.3333 25.3431 25.3529 25.3627 25.3725 25.3823 25.3921 25.4019 25.4117 25.4215 25.4313 Columns 545 through 561 25.4411 25.4509 25.4607 25.4705 25.4803 25.4901 25.4999 25.5097 25.5195 25.5293 25.5391 25.5489 25.5587 25.5685 25.5783 25.5881 25.5979 Columns 562 through 578 25.6077 25.6175 25.6273 25.6371 25.6469 25.6567 25.6665 25.6763 25.6861 25.6959 25.7057 25.7155 25.7253 25.7351 25.7448 25.7546 25.7644 Columns 579 through 595 25.7742 25.7840 25.7938 25.8036 25.8134 25.8232 25.8330 25.8428 25.8526 25.8624 25.8722 25.8820 25.8918 25.9016 25.9114 25.9212 25.9310 Columns 596 through 600 25.9408 25.9506 25.9604 25.9702 25.9800 pentagonY = Columns 1 through 17 12.4700 12.3903 12.3106 12.2309 12.1512 12.0715 11.9918 11.9121 11.8324 11.7527 11.6730 11.5933 11.5136 11.4339 11.3542 11.2745 11.1948 Columns 18 through 34 11.1152 11.0355 10.9558 10.8761 10.7964 10.7167 10.6370 10.5573 10.4776 10.3979 10.3182 10.2385 10.1588 10.0791 9.9994 9.9197 9.8400 Columns 35 through 51 9.7603 9.6806 9.6009 9.5212 9.4415 9.3618 9.2821 9.2024 9.1227 9.0430 8.9633 8.8836 8.8039 8.7242 8.6445 8.5648 8.4852 Columns 52 through 68 8.4055 8.3258 8.2461 8.1664 8.0867 8.0070 7.9273 7.8476 7.7679 7.6882 7.6085 7.5288 7.4491 7.3694 7.2897 7.2100 7.1303 Columns 69 through 85 7.0506 6.9709 6.8912 6.8115 6.7318 6.6521 6.5724 6.4927 6.4130 6.3333 6.2536 6.1739 6.0942 6.0145 5.9348 5.8552 5.7755 Columns 86 through 102 5.6958 5.6161 5.5364 5.4567 5.3770 5.2973 5.2176 5.1379 5.0582 4.9785 4.8988 4.8191 4.7394 4.6597 4.5800 4.5800 4.5462 Columns 103 through 119 4.5123 4.4785 4.4446 4.4108 4.3770 4.3431 4.3093 4.2755 4.2416 4.2078 4.1739 4.1401 4.1063 4.0724 4.0386 4.0047 3.9709 Columns 120 through 136 3.9371 3.9032 3.8694 3.8356 3.8017 3.7679 3.7340 3.7002 3.6664 3.6325 3.5987 3.5648 3.5310 3.4972 3.4633 3.4295 3.3957 Columns 137 through 153 3.3618 3.3280 3.2941 3.2603 3.2265 3.1926 3.1588 3.1249 3.0911 3.0573 3.0234 2.9896 2.9558 2.9219 2.8881 2.8542 2.8204 Columns 154 through 170 2.7866 2.7527 2.7189 2.6851 2.6512 2.6174 2.5835 2.5497 2.5159 2.4820 2.4482 2.4143 2.3805 2.3467 2.3128 2.2790 2.2452 Columns 171 through 187 2.2113 2.1775 2.1436 2.1098 2.0760 2.0421 2.0083 1.9744 1.9406 1.9068 1.8729 1.8391 1.8053 1.7714 1.7376 1.7037 1.6699 Columns 188 through 204 1.6361 1.6022 1.5684 1.5345 1.5007 1.4669 1.4330 1.3992 1.3654 1.3315 1.2977 1.2638 1.2300 1.2300 1.2886 1.3472 1.4058 Columns 205 through 221 1.4643 1.5229 1.5815 1.6401 1.6987 1.7573 1.8159 1.8744 1.9330 1.9916 2.0502 2.1088 2.1674 2.2260 2.2845 2.3431 2.4017 Columns 222 through 238 2.4603 2.5189 2.5775 2.6361 2.6946 2.7532 2.8118 2.8704 2.9290 2.9876 3.0462 3.1047 3.1633 3.2219 3.2805 3.3391 3.3977 Columns 239 through 255 3.4563 3.5148 3.5734 3.6320 3.6906 3.7492 3.8078 3.8664 3.9249 3.9835 4.0421 4.1007 4.1593 4.2179 4.2765 4.3351 4.3936 Columns 256 through 272 4.4522 4.5108 4.5694 4.6280 4.6...

12   Pass
p = [23.27,11.12; 23.92,5.87; 19.12,3.63; 15.52,7.50; 18.08,12.13]; cp = [20,8]; r = 5; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 23.2700 23.2766 23.2831 23.2897 23.2963 23.3028 23.3094 23.3160 23.3225 23.3291 23.3357 23.3422 23.3488 23.3554 23.3619 23.3685 23.3751 Columns 18 through 34 23.3816 23.3882 23.3947 23.4013 23.4079 23.4144 23.4210 23.4276 23.4341 23.4407 23.4473 23.4538 23.4604 23.4670 23.4735 23.4801 23.4867 Columns 35 through 51 23.4932 23.4998 23.5064 23.5129 23.5195 23.5261 23.5326 23.5392 23.5458 23.5523 23.5589 23.5655 23.5720 23.5786 23.5852 23.5917 23.5983 Columns 52 through 68 23.6048 23.6114 23.6180 23.6245 23.6311 23.6377 23.6442 23.6508 23.6574 23.6639 23.6705 23.6771 23.6836 23.6902 23.6968 23.7033 23.7099 Columns 69 through 85 23.7165 23.7230 23.7296 23.7362 23.7427 23.7493 23.7559 23.7624 23.7690 23.7756 23.7821 23.7887 23.7953 23.8018 23.8084 23.8149 23.8215 Columns 86 through 102 23.8281 23.8346 23.8412 23.8478 23.8543 23.8609 23.8675 23.8740 23.8806 23.8872 23.8937 23.9003 23.9069 23.9134 23.9200 23.9200 23.8715 Columns 103 through 119 23.8230 23.7745 23.7261 23.6776 23.6291 23.5806 23.5321 23.4836 23.4352 23.3867 23.3382 23.2897 23.2412 23.1927 23.1442 23.0958 23.0473 Columns 120 through 136 22.9988 22.9503 22.9018 22.8533 22.8048 22.7564 22.7079 22.6594 22.6109 22.5624 22.5139 22.4655 22.4170 22.3685 22.3200 22.2715 22.2230 Columns 137 through 153 22.1745 22.1261 22.0776 22.0291 21.9806 21.9321 21.8836 21.8352 21.7867 21.7382 21.6897 21.6412 21.5927 21.5442 21.4958 21.4473 21.3988 Columns 154 through 170 21.3503 21.3018 21.2533 21.2048 21.1564 21.1079 21.0594 21.0109 20.9624 20.9139 20.8655 20.8170 20.7685 20.7200 20.6715 20.6230 20.5745 Columns 171 through 187 20.5261 20.4776 20.4291 20.3806 20.3321 20.2836 20.2352 20.1867 20.1382 20.0897 20.0412 19.9927 19.9442 19.8958 19.8473 19.7988 19.7503 Columns 188 through 204 19.7018 19.6533 19.6048 19.5564 19.5079 19.4594 19.4109 19.3624 19.3139 19.2655 19.2170 19.1685 19.1200 19.1200 19.0836 19.0473 19.0109 Columns 205 through 221 18.9745 18.9382 18.9018 18.8655 18.8291 18.7927 18.7564 18.7200 18.6836 18.6473 18.6109 18.5745 18.5382 18.5018 18.4655 18.4291 18.3927 Columns 222 through 238 18.3564 18.3200 18.2836 18.2473 18.2109 18.1745 18.1382 18.1018 18.0655 18.0291 17.9927 17.9564 17.9200 17.8836 17.8473 17.8109 17.7745 Columns 239 through 255 17.7382 17.7018 17.6655 17.6291 17.5927 17.5564 17.5200 17.4836 17.4473 17.4109 17.3745 17.3382 17.3018 17.2655 17.2291 17.1927 17.1564 Columns 256 through 272 17.1200 17.0836 17.0473 17.0109 16.9745 16.9382 16.9018 16.8655 16.8291 16.7927 16.7564 16.7200 16.6836 16.6473 16.6109 16.5745 16.5382 Columns 273 through 289 16.5018 16.4655 16.4291 16.3927 16.3564 16.3200 16.2836 16.2473 16.2109 16.1745 16.1382 16.1018 16.0655 16.0291 15.9927 15.9564 15.9200 Columns 290 through 306 15.8836 15.8473 15.8109 15.7745 15.7382 15.7018 15.6655 15.6291 15.5927 15.5564 15.5200 15.5200 15.5459 15.5717 15.5976 15.6234 15.6493 Columns 307 through 323 15.6752 15.7010 15.7269 15.7527 15.7786 15.8044 15.8303 15.8562 15.8820 15.9079 15.9337 15.9596 15.9855 16.0113 16.0372 16.0630 16.0889 Columns 324 through 340 16.1147 16.1406 16.1665 16.1923 16.2182 16.2440 16.2699 16.2958 16.3216 16.3475 16.3733 16.3992 16.4251 16.4509 16.4768 16.5026 16.5285 Columns 341 through 357 16.5543 16.5802 16.6061 16.6319 16.6578 16.6836 16.7095 16.7354 16.7612 16.7871 16.8129 16.8388 16.8646 16.8905 16.9164 16.9422 16.9681 Columns 358 through 374 16.9939 17.0198 17.0457 17.0715 17.0974 17.1232 17.1491 17.1749 17.2008 17.2267 17.2525 17.2784 17.3042 17.3301 17.3560 17.3818 17.4077 Columns 375 through 391 17.4335 17.4594 17.4853 17.5111 17.5370 17.5628 17.5887 17.6145 17.6404 17.6663 17.6921 17.7180 17.7438 17.7697 17.7956 17.8214 17.8473 Columns 392 through 408 17.8731 17.8990 17.9248 17.9507 17.9766 18.0024 18.0283 18.0541 18.0800 18.0800 18.1324 18.1848 18.2373 18.2897 18.3421 18.3945 18.4470 Columns 409 through 425 18.4994 18.5518 18.6042 18.6567 18.7091 18.7615 18.8139 18.8664 18.9188 18.9712 19.0236 19.0761 19.1285 19.1809 19.2333 19.2858 19.3382 Columns 426 through 442 19.3906 19.4430 19.4955 19.5479 19.6003 19.6527 19.7052 19.7576 19.8100 19.8624 19.9148 19.9673 20.0197 20.0721 20.1245 20.1770 20.2294 Columns 443 through 459 20.2818 20.3342 20.3867 20.4391 20.4915 20.5439 20.5964 20.6488 20.7012 20.7536 20.8061 20.8585 20.9109 20.9633 21.0158 21.0682 21.1206 Columns 460 through 476 21.1730 21.2255 21.2779 21.3303 21.3827 21.4352 21.4876 21.5400 21.5924 21.6448 21.6973 21.7497 21.8021 21.8545 21.9070 21.9594 22.0118 Columns 477 through 493 22.0642 22.1167 22.1691 22.2215 22.2739 22.3264 22.3788 22.4312 22.4836 22.5361 22.5885 22.6409 22.6933 22.7458 22.7982 22.8506 22.9030 Columns 494 through 510 22.9555 23.0079 23.0603 23.1127 23.1652 23.2176 23.2700 23.2700 23.2766 23.2831 23.2897 23.2963 23.3028 23.3094 23.3160 23.3225 23.3291 Columns 511 through 527 23.3357 23.3422 23.3488 23.3554 23.3619 23.3685 23.3751 23.3816 23.3882 23.3947 23.4013 23.4079 23.4144 23.4210 23.4276 23.4341 23.4407 Columns 528 through 544 23.4473 23.4538 23.4604 23.4670 23.4735 23.4801 23.4867 23.4932 23.4998 23.5064 23.5129 23.5195 23.5261 23.5326 23.5392 23.5458 23.5523 Columns 545 through 561 23.5589 23.5655 23.5720 23.5786 23.5852 23.5917 23.5983 23.6048 23.6114 23.6180 23.6245 23.6311 23.6377 23.6442 23.6508 23.6574 23.6639 Columns 562 through 578 23.6705 23.6771 23.6836 23.6902 23.6968 23.7033 23.7099 23.7165 23.7230 23.7296 23.7362 23.7427 23.7493 23.7559 23.7624 23.7690 23.7756 Columns 579 through 595 23.7821 23.7887 23.7953 23.8018 23.8084 23.8149 23.8215 23.8281 23.8346 23.8412 23.8478 23.8543 23.8609 23.8675 23.8740 23.8806 23.8872 Columns 596 through 600 23.8937 23.9003 23.9069 23.9134 23.9200 pentagonY = Columns 1 through 17 11.1200 11.0670 11.0139 10.9609 10.9079 10.8548 10.8018 10.7488 10.6958 10.6427 10.5897 10.5367 10.4836 10.4306 10.3776 10.3245 10.2715 Columns 18 through 34 10.2185 10.1655 10.1124 10.0594 10.0064 9.9533 9.9003 9.8473 9.7942 9.7412 9.6882 9.6352 9.5821 9.5291 9.4761 9.4230 9.3700 Columns 35 through 51 9.3170 9.2639 9.2109 9.1579 9.1048 9.0518 8.9988 8.9458 8.8927 8.8397 8.7867 8.7336 8.6806 8.6276 8.5745 8.5215 8.4685 Columns 52 through 68 8.4155 8.3624 8.3094 8.2564 8.2033 8.1503 8.0973 8.0442 7.9912 7.9382 7.8852 7.8321 7.7791 7.7261 7.6730 7.6200 7.5670 Columns 69 through 85 7.5139 7.4609 7.4079 7.3548 7.3018 7.2488 7.1958 7.1427 7.0897 7.0367 6.9836 6.9306 6.8776 6.8245 6.7715 6.7185 6.6655 Columns 86 through 102 6.6124 6.5594 6.5064 6.4533 6.4003 6.3473 6.2942 6.2412 6.1882 6.1352 6.0821 6.0291 5.9761 5.9230 5.8700 5.8700 5.8474 Columns 103 through 119 5.8247 5.8021 5.7795 5.7569 5.7342 5.7116 5.6890 5.6664 5.6437 5.6211 5.5985 5.5759 5.5532 5.5306 5.5080 5.4854 5.4627 Columns 120 through 136 5.4401 5.4175 5.3948 5.3722 5.3496 5.3270 5.3043 5.2817 5.2591 5.2365 5.2138 5.1912 5.1686 5.1460 5.1233 5.1007 5.0781 Columns 137 through 153 5.0555 5.0328 5.0102 4.9876 4.9649 4.9423 4.9197 4.8971 4.8744 4.8518 4.8292 4.8066 4.7839 4.7613 4.7387 4.7161 4.6934 Columns 154 through 170 4.6708 4.6482 4.6256 4.6029 4.5803 4.5577 4.5351 4.5124 4.4898 4.4672 4.4445 4.4219 4.3993 4.3767 4.3540 4.3314 4.3088 Columns 171 through 187 4.2862 4.2635 4.2409 4.2183 4.1957 4.1730 4.1504 4.1278 4.1052 4.0825 4.0599 4.0373 4.0146 3.9920 3.9694 3.9468 3.9241 Columns 188 through 204 3.9015 3.8789 3.8563 3.8336 3.8110 3.7884 3.7658 3.7431 3.7205 3.6979 3.6753 3.6526 3.6300 3.6300 3.6691 3.7082 3.7473 Columns 205 through 221 3.7864 3.8255 3.8645 3.9036 3.9427 3.9818 4.0209 4.0600 4.0991 4.1382 4.1773 4.2164 4.2555 4.2945 4.3336 4.3727 4.4118 Columns 222 through 238 4.4509 4.4900 4.5291 4.5682 4.6073 4.6464 4.6855 4.7245 4.7636 4.8027 4.8418 4.8809 4.9200 4.9591 4.9982 5.0373 5.0764 Columns 239 through 255 5.1155 5.1545 5.1936 5.2327 5.2718 5.3109 5.3500 5.3891 5.4282 5.4673 5.5064 5.5455 5.5845 5.6236 5.6627 5.7018 5.7409 Columns 256 through 272 5.7800 5.8191 5.8582 5.8973 5.9...

13   Pass
p = [30.94,36.26; 35.61,27.09; 28.34,19.82; 19.17,24.49; 20.78,34.65]; cp = [26.97,28.45]; r = 8.75; y_correct = 1; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 30.9400 30.9872 31.0343 31.0815 31.1287 31.1759 31.2230 31.2702 31.3174 31.3645 31.4117 31.4589 31.5061 31.5532 31.6004 31.6476 31.6947 Columns 18 through 34 31.7419 31.7891 31.8363 31.8834 31.9306 31.9778 32.0249 32.0721 32.1193 32.1665 32.2136 32.2608 32.3080 32.3552 32.4023 32.4495 32.4967 Columns 35 through 51 32.5438 32.5910 32.6382 32.6854 32.7325 32.7797 32.8269 32.8740 32.9212 32.9684 33.0156 33.0627 33.1099 33.1571 33.2042 33.2514 33.2986 Columns 52 through 68 33.3458 33.3929 33.4401 33.4873 33.5344 33.5816 33.6288 33.6760 33.7231 33.7703 33.8175 33.8646 33.9118 33.9590 34.0062 34.0533 34.1005 Columns 69 through 85 34.1477 34.1948 34.2420 34.2892 34.3364 34.3835 34.4307 34.4779 34.5251 34.5722 34.6194 34.6666 34.7137 34.7609 34.8081 34.8553 34.9024 Columns 86 through 102 34.9496 34.9968 35.0439 35.0911 35.1383 35.1855 35.2326 35.2798 35.3270 35.3741 35.4213 35.4685 35.5157 35.5628 35.6100 35.6100 35.5366 Columns 103 through 119 35.4631 35.3897 35.3163 35.2428 35.1694 35.0960 35.0225 34.9491 34.8757 34.8022 34.7288 34.6554 34.5819 34.5085 34.4351 34.3616 34.2882 Columns 120 through 136 34.2147 34.1413 34.0679 33.9944 33.9210 33.8476 33.7741 33.7007 33.6273 33.5538 33.4804 33.4070 33.3335 33.2601 33.1867 33.1132 33.0398 Columns 137 through 153 32.9664 32.8929 32.8195 32.7461 32.6726 32.5992 32.5258 32.4523 32.3789 32.3055 32.2320 32.1586 32.0852 32.0117 31.9383 31.8648 31.7914 Columns 154 through 170 31.7180 31.6445 31.5711 31.4977 31.4242 31.3508 31.2774 31.2039 31.1305 31.0571 30.9836 30.9102 30.8368 30.7633 30.6899 30.6165 30.5430 Columns 171 through 187 30.4696 30.3962 30.3227 30.2493 30.1759 30.1024 30.0290 29.9556 29.8821 29.8087 29.7353 29.6618 29.5884 29.5149 29.4415 29.3681 29.2946 Columns 188 through 204 29.2212 29.1478 29.0743 29.0009 28.9275 28.8540 28.7806 28.7072 28.6337 28.5603 28.4869 28.4134 28.3400 28.3400 28.2474 28.1547 28.0621 Columns 205 through 221 27.9695 27.8769 27.7842 27.6916 27.5990 27.5064 27.4137 27.3211 27.2285 27.1359 27.0432 26.9506 26.8580 26.7654 26.6727 26.5801 26.4875 Columns 222 through 238 26.3948 26.3022 26.2096 26.1170 26.0243 25.9317 25.8391 25.7465 25.6538 25.5612 25.4686 25.3760 25.2833 25.1907 25.0981 25.0055 24.9128 Columns 239 through 255 24.8202 24.7276 24.6349 24.5423 24.4497 24.3571 24.2644 24.1718 24.0792 23.9866 23.8939 23.8013 23.7087 23.6161 23.5234 23.4308 23.3382 Columns 256 through 272 23.2456 23.1529 23.0603 22.9677 22.8751 22.7824 22.6898 22.5972 22.5045 22.4119 22.3193 22.2267 22.1340 22.0414 21.9488 21.8562 21.7635 Columns 273 through 289 21.6709 21.5783 21.4857 21.3930 21.3004 21.2078 21.1152 21.0225 20.9299 20.8373 20.7446 20.6520 20.5594 20.4668 20.3741 20.2815 20.1889 Columns 290 through 306 20.0963 20.0036 19.9110 19.8184 19.7258 19.6331 19.5405 19.4479 19.3553 19.2626 19.1700 19.1700 19.1863 19.2025 19.2188 19.2351 19.2513 Columns 307 through 323 19.2676 19.2838 19.3001 19.3164 19.3326 19.3489 19.3652 19.3814 19.3977 19.4139 19.4302 19.4465 19.4627 19.4790 19.4953 19.5115 19.5278 Columns 324 through 340 19.5440 19.5603 19.5766 19.5928 19.6091 19.6254 19.6416 19.6579 19.6741 19.6904 19.7067 19.7229 19.7392 19.7555 19.7717 19.7880 19.8042 Columns 341 through 357 19.8205 19.8368 19.8530 19.8693 19.8856 19.9018 19.9181 19.9343 19.9506 19.9669 19.9831 19.9994 20.0157 20.0319 20.0482 20.0644 20.0807 Columns 358 through 374 20.0970 20.1132 20.1295 20.1458 20.1620 20.1783 20.1945 20.2108 20.2271 20.2433 20.2596 20.2759 20.2921 20.3084 20.3246 20.3409 20.3572 Columns 375 through 391 20.3734 20.3897 20.4060 20.4222 20.4385 20.4547 20.4710 20.4873 20.5035 20.5198 20.5361 20.5523 20.5686 20.5848 20.6011 20.6174 20.6336 Columns 392 through 408 20.6499 20.6662 20.6824 20.6987 20.7149 20.7312 20.7475 20.7637 20.7800 20.7800 20.8826 20.9853 21.0879 21.1905 21.2931 21.3958 21.4984 Columns 409 through 425 21.6010 21.7036 21.8063 21.9089 22.0115 22.1141 22.2168 22.3194 22.4220 22.5246 22.6273 22.7299 22.8325 22.9352 23.0378 23.1404 23.2430 Columns 426 through 442 23.3457 23.4483 23.5509 23.6535 23.7562 23.8588 23.9614 24.0640 24.1667 24.2693 24.3719 24.4745 24.5772 24.6798 24.7824 24.8851 24.9877 Columns 443 through 459 25.0903 25.1929 25.2956 25.3982 25.5008 25.6034 25.7061 25.8087 25.9113 26.0139 26.1166 26.2192 26.3218 26.4244 26.5271 26.6297 26.7323 Columns 460 through 476 26.8349 26.9376 27.0402 27.1428 27.2455 27.3481 27.4507 27.5533 27.6560 27.7586 27.8612 27.9638 28.0665 28.1691 28.2717 28.3743 28.4770 Columns 477 through 493 28.5796 28.6822 28.7848 28.8875 28.9901 29.0927 29.1954 29.2980 29.4006 29.5032 29.6059 29.7085 29.8111 29.9137 30.0164 30.1190 30.2216 Columns 494 through 510 30.3242 30.4269 30.5295 30.6321 30.7347 30.8374 30.9400 30.9400 30.9872 31.0343 31.0815 31.1287 31.1759 31.2230 31.2702 31.3174 31.3645 Columns 511 through 527 31.4117 31.4589 31.5061 31.5532 31.6004 31.6476 31.6947 31.7419 31.7891 31.8363 31.8834 31.9306 31.9778 32.0249 32.0721 32.1193 32.1665 Columns 528 through 544 32.2136 32.2608 32.3080 32.3552 32.4023 32.4495 32.4967 32.5438 32.5910 32.6382 32.6854 32.7325 32.7797 32.8269 32.8740 32.9212 32.9684 Columns 545 through 561 33.0156 33.0627 33.1099 33.1571 33.2042 33.2514 33.2986 33.3458 33.3929 33.4401 33.4873 33.5344 33.5816 33.6288 33.6760 33.7231 33.7703 Columns 562 through 578 33.8175 33.8646 33.9118 33.9590 34.0062 34.0533 34.1005 34.1477 34.1948 34.2420 34.2892 34.3364 34.3835 34.4307 34.4779 34.5251 34.5722 Columns 579 through 595 34.6194 34.6666 34.7137 34.7609 34.8081 34.8553 34.9024 34.9496 34.9968 35.0439 35.0911 35.1383 35.1855 35.2326 35.2798 35.3270 35.3741 Columns 596 through 600 35.4213 35.4685 35.5157 35.5628 35.6100 pentagonY = Columns 1 through 17 36.2600 36.1674 36.0747 35.9821 35.8895 35.7969 35.7042 35.6116 35.5190 35.4264 35.3337 35.2411 35.1485 35.0559 34.9632 34.8706 34.7780 Columns 18 through 34 34.6854 34.5927 34.5001 34.4075 34.3148 34.2222 34.1296 34.0370 33.9443 33.8517 33.7591 33.6665 33.5738 33.4812 33.3886 33.2960 33.2033 Columns 35 through 51 33.1107 33.0181 32.9255 32.8328 32.7402 32.6476 32.5549 32.4623 32.3697 32.2771 32.1844 32.0918 31.9992 31.9066 31.8139 31.7213 31.6287 Columns 52 through 68 31.5361 31.4434 31.3508 31.2582 31.1656 31.0729 30.9803 30.8877 30.7951 30.7024 30.6098 30.5172 30.4245 30.3319 30.2393 30.1467 30.0540 Columns 69 through 85 29.9614 29.8688 29.7762 29.6835 29.5909 29.4983 29.4057 29.3130 29.2204 29.1278 29.0352 28.9425 28.8499 28.7573 28.6646 28.5720 28.4794 Columns 86 through 102 28.3868 28.2941 28.2015 28.1089 28.0163 27.9236 27.8310 27.7384 27.6458 27.5531 27.4605 27.3679 27.2753 27.1826 27.0900 27.0900 27.0166 Columns 103 through 119 26.9431 26.8697 26.7963 26.7228 26.6494 26.5760 26.5025 26.4291 26.3557 26.2822 26.2088 26.1354 26.0619 25.9885 25.9151 25.8416 25.7682 Columns 120 through 136 25.6947 25.6213 25.5479 25.4744 25.4010 25.3276 25.2541 25.1807 25.1073 25.0338 24.9604 24.8870 24.8135 24.7401 24.6667 24.5932 24.5198 Columns 137 through 153 24.4464 24.3729 24.2995 24.2261 24.1526 24.0792 24.0058 23.9323 23.8589 23.7855 23.7120 23.6386 23.5652 23.4917 23.4183 23.3448 23.2714 Columns 154 through 170 23.1980 23.1245 23.0511 22.9777 22.9042 22.8308 22.7574 22.6839 22.6105 22.5371 22.4636 22.3902 22.3168 22.2433 22.1699 22.0965 22.0230 Columns 171 through 187 21.9496 21.8762 21.8027 21.7293 21.6559 21.5824 21.5090 21.4356 21.3621 21.2887 21.2153 21.1418 21.0684 20.9949 20.9215 20.8481 20.7746 Columns 188 through 204 20.7012 20.6278 20.5543 20.4809 20.4075 20.3340 20.2606 20.1872 20.1137 20.0403 19.9669 19.8934 19.8200 19.8200 19.8672 19.9143 19.9615 Columns 205 through 221 20.0087 20.0559 20.1030 20.1502 20.1974 20.2445 20.2917 20.3389 20.3861 20.4332 20.4804 20.5276 20.5747 20.6219 20.6691 20.7163 20.7634 Columns 222 through 238 20.8106 20.8578 20.9049 20.9521 20.9993 21.0465 21.0936 21.1408 21.1880 21.2352 21.2823 21.3295 21.3767 21.4238 21.4710 21.5182 21.5654 Columns 239 through 255 21.6125 21.6597 21.7069 21.7540 21.8012 21.8484 21.8956 21.9427 21.9899 22.0371 22.0842 22.1314 22.1786 22.2258 22.2729 22.3201 22.3673 Columns 256 through 272 22.4144 22.4616 22.5088 22.5560 22.6...

14   Pass
p = [32.54,38.78; 38.84,26.41; 29.02,16.59; 16.65,22.89; 18.83,36.61]; cp = [26.97,28.45]; r = 8.75; y_correct = 4; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 32.5400 32.6036 32.6673 32.7309 32.7945 32.8582 32.9218 32.9855 33.0491 33.1127 33.1764 33.2400 33.3036 33.3673 33.4309 33.4945 33.5582 Columns 18 through 34 33.6218 33.6855 33.7491 33.8127 33.8764 33.9400 34.0036 34.0673 34.1309 34.1945 34.2582 34.3218 34.3855 34.4491 34.5127 34.5764 34.6400 Columns 35 through 51 34.7036 34.7673 34.8309 34.8945 34.9582 35.0218 35.0855 35.1491 35.2127 35.2764 35.3400 35.4036 35.4673 35.5309 35.5945 35.6582 35.7218 Columns 52 through 68 35.7855 35.8491 35.9127 35.9764 36.0400 36.1036 36.1673 36.2309 36.2945 36.3582 36.4218 36.4855 36.5491 36.6127 36.6764 36.7400 36.8036 Columns 69 through 85 36.8673 36.9309 36.9945 37.0582 37.1218 37.1855 37.2491 37.3127 37.3764 37.4400 37.5036 37.5673 37.6309 37.6945 37.7582 37.8218 37.8855 Columns 86 through 102 37.9491 38.0127 38.0764 38.1400 38.2036 38.2673 38.3309 38.3945 38.4582 38.5218 38.5855 38.6491 38.7127 38.7764 38.8400 38.8400 38.7408 Columns 103 through 119 38.6416 38.5424 38.4432 38.3440 38.2448 38.1457 38.0465 37.9473 37.8481 37.7489 37.6497 37.5505 37.4513 37.3521 37.2529 37.1537 37.0545 Columns 120 through 136 36.9554 36.8562 36.7570 36.6578 36.5586 36.4594 36.3602 36.2610 36.1618 36.0626 35.9634 35.8642 35.7651 35.6659 35.5667 35.4675 35.3683 Columns 137 through 153 35.2691 35.1699 35.0707 34.9715 34.8723 34.7731 34.6739 34.5747 34.4756 34.3764 34.2772 34.1780 34.0788 33.9796 33.8804 33.7812 33.6820 Columns 154 through 170 33.5828 33.4836 33.3844 33.2853 33.1861 33.0869 32.9877 32.8885 32.7893 32.6901 32.5909 32.4917 32.3925 32.2933 32.1941 32.0949 31.9958 Columns 171 through 187 31.8966 31.7974 31.6982 31.5990 31.4998 31.4006 31.3014 31.2022 31.1030 31.0038 30.9046 30.8055 30.7063 30.6071 30.5079 30.4087 30.3095 Columns 188 through 204 30.2103 30.1111 30.0119 29.9127 29.8135 29.7143 29.6152 29.5160 29.4168 29.3176 29.2184 29.1192 29.0200 29.0200 28.8951 28.7701 28.6452 Columns 205 through 221 28.5202 28.3953 28.2703 28.1454 28.0204 27.8955 27.7705 27.6456 27.5206 27.3957 27.2707 27.1458 27.0208 26.8959 26.7709 26.6460 26.5210 Columns 222 through 238 26.3961 26.2711 26.1462 26.0212 25.8963 25.7713 25.6464 25.5214 25.3965 25.2715 25.1466 25.0216 24.8967 24.7717 24.6468 24.5218 24.3969 Columns 239 through 255 24.2719 24.1470 24.0220 23.8971 23.7721 23.6472 23.5222 23.3973 23.2723 23.1474 23.0224 22.8975 22.7725 22.6476 22.5226 22.3977 22.2727 Columns 256 through 272 22.1478 22.0228 21.8979 21.7729 21.6480 21.5230 21.3981 21.2731 21.1482 21.0232 20.8983 20.7733 20.6484 20.5234 20.3985 20.2735 20.1486 Columns 273 through 289 20.0236 19.8987 19.7737 19.6488 19.5238 19.3989 19.2739 19.1490 19.0240 18.8991 18.7741 18.6492 18.5242 18.3993 18.2743 18.1494 18.0244 Columns 290 through 306 17.8995 17.7745 17.6496 17.5246 17.3997 17.2747 17.1498 17.0248 16.8999 16.7749 16.6500 16.6500 16.6720 16.6940 16.7161 16.7381 16.7601 Columns 307 through 323 16.7821 16.8041 16.8262 16.8482 16.8702 16.8922 16.9142 16.9363 16.9583 16.9803 17.0023 17.0243 17.0464 17.0684 17.0904 17.1124 17.1344 Columns 324 through 340 17.1565 17.1785 17.2005 17.2225 17.2445 17.2666 17.2886 17.3106 17.3326 17.3546 17.3767 17.3987 17.4207 17.4427 17.4647 17.4868 17.5088 Columns 341 through 357 17.5308 17.5528 17.5748 17.5969 17.6189 17.6409 17.6629 17.6849 17.7070 17.7290 17.7510 17.7730 17.7951 17.8171 17.8391 17.8611 17.8831 Columns 358 through 374 17.9052 17.9272 17.9492 17.9712 17.9932 18.0153 18.0373 18.0593 18.0813 18.1033 18.1254 18.1474 18.1694 18.1914 18.2134 18.2355 18.2575 Columns 375 through 391 18.2795 18.3015 18.3235 18.3456 18.3676 18.3896 18.4116 18.4336 18.4557 18.4777 18.4997 18.5217 18.5437 18.5658 18.5878 18.6098 18.6318 Columns 392 through 408 18.6538 18.6759 18.6979 18.7199 18.7419 18.7639 18.7860 18.8080 18.8300 18.8300 18.9685 19.1070 19.2455 19.3839 19.5224 19.6609 19.7994 Columns 409 through 425 19.9379 20.0764 20.2148 20.3533 20.4918 20.6303 20.7688 20.9073 21.0458 21.1842 21.3227 21.4612 21.5997 21.7382 21.8767 22.0152 22.1536 Columns 426 through 442 22.2921 22.4306 22.5691 22.7076 22.8461 22.9845 23.1230 23.2615 23.4000 23.5385 23.6770 23.8155 23.9539 24.0924 24.2309 24.3694 24.5079 Columns 443 through 459 24.6464 24.7848 24.9233 25.0618 25.2003 25.3388 25.4773 25.6158 25.7542 25.8927 26.0312 26.1697 26.3082 26.4467 26.5852 26.7236 26.8621 Columns 460 through 476 27.0006 27.1391 27.2776 27.4161 27.5545 27.6930 27.8315 27.9700 28.1085 28.2470 28.3855 28.5239 28.6624 28.8009 28.9394 29.0779 29.2164 Columns 477 through 493 29.3548 29.4933 29.6318 29.7703 29.9088 30.0473 30.1858 30.3242 30.4627 30.6012 30.7397 30.8782 31.0167 31.1552 31.2936 31.4321 31.5706 Columns 494 through 510 31.7091 31.8476 31.9861 32.1245 32.2630 32.4015 32.5400 32.5400 32.6036 32.6673 32.7309 32.7945 32.8582 32.9218 32.9855 33.0491 33.1127 Columns 511 through 527 33.1764 33.2400 33.3036 33.3673 33.4309 33.4945 33.5582 33.6218 33.6855 33.7491 33.8127 33.8764 33.9400 34.0036 34.0673 34.1309 34.1945 Columns 528 through 544 34.2582 34.3218 34.3855 34.4491 34.5127 34.5764 34.6400 34.7036 34.7673 34.8309 34.8945 34.9582 35.0218 35.0855 35.1491 35.2127 35.2764 Columns 545 through 561 35.3400 35.4036 35.4673 35.5309 35.5945 35.6582 35.7218 35.7855 35.8491 35.9127 35.9764 36.0400 36.1036 36.1673 36.2309 36.2945 36.3582 Columns 562 through 578 36.4218 36.4855 36.5491 36.6127 36.6764 36.7400 36.8036 36.8673 36.9309 36.9945 37.0582 37.1218 37.1855 37.2491 37.3127 37.3764 37.4400 Columns 579 through 595 37.5036 37.5673 37.6309 37.6945 37.7582 37.8218 37.8855 37.9491 38.0127 38.0764 38.1400 38.2036 38.2673 38.3309 38.3945 38.4582 38.5218 Columns 596 through 600 38.5855 38.6491 38.7127 38.7764 38.8400 pentagonY = Columns 1 through 17 38.7800 38.6551 38.5301 38.4052 38.2802 38.1553 38.0303 37.9054 37.7804 37.6555 37.5305 37.4056 37.2806 37.1557 37.0307 36.9058 36.7808 Columns 18 through 34 36.6559 36.5309 36.4060 36.2810 36.1561 36.0311 35.9062 35.7812 35.6563 35.5313 35.4064 35.2814 35.1565 35.0315 34.9066 34.7816 34.6567 Columns 35 through 51 34.5317 34.4068 34.2818 34.1569 34.0319 33.9070 33.7820 33.6571 33.5321 33.4072 33.2822 33.1573 33.0323 32.9074 32.7824 32.6575 32.5325 Columns 52 through 68 32.4076 32.2826 32.1577 32.0327 31.9078 31.7828 31.6579 31.5329 31.4080 31.2830 31.1581 31.0331 30.9082 30.7832 30.6583 30.5333 30.4084 Columns 69 through 85 30.2834 30.1585 30.0335 29.9086 29.7836 29.6587 29.5337 29.4088 29.2838 29.1589 29.0339 28.9090 28.7840 28.6591 28.5341 28.4092 28.2842 Columns 86 through 102 28.1593 28.0343 27.9094 27.7844 27.6595 27.5345 27.4096 27.2846 27.1597 27.0347 26.9098 26.7848 26.6599 26.5349 26.4100 26.4100 26.3108 Columns 103 through 119 26.2116 26.1124 26.0132 25.9140 25.8148 25.7157 25.6165 25.5173 25.4181 25.3189 25.2197 25.1205 25.0213 24.9221 24.8229 24.7237 24.6245 Columns 120 through 136 24.5254 24.4262 24.3270 24.2278 24.1286 24.0294 23.9302 23.8310 23.7318 23.6326 23.5334 23.4342 23.3351 23.2359 23.1367 23.0375 22.9383 Columns 137 through 153 22.8391 22.7399 22.6407 22.5415 22.4423 22.3431 22.2439 22.1447 22.0456 21.9464 21.8472 21.7480 21.6488 21.5496 21.4504 21.3512 21.2520 Columns 154 through 170 21.1528 21.0536 20.9544 20.8553 20.7561 20.6569 20.5577 20.4585 20.3593 20.2601 20.1609 20.0617 19.9625 19.8633 19.7641 19.6649 19.5658 Columns 171 through 187 19.4666 19.3674 19.2682 19.1690 19.0698 18.9706 18.8714 18.7722 18.6730 18.5738 18.4746 18.3755 18.2763 18.1771 18.0779 17.9787 17.8795 Columns 188 through 204 17.7803 17.6811 17.5819 17.4827 17.3835 17.2843 17.1852 17.0860 16.9868 16.8876 16.7884 16.6892 16.5900 16.5900 16.6536 16.7173 16.7809 Columns 205 through 221 16.8445 16.9082 16.9718 17.0355 17.0991 17.1627 17.2264 17.2900 17.3536 17.4173 17.4809 17.5445 17.6082 17.6718 17.7355 17.7991 17.8627 Columns 222 through 238 17.9264 17.9900 18.0536 18.1173 18.1809 18.2445 18.3082 18.3718 18.4355 18.4991 18.5627 18.6264 18.6900 18.7536 18.8173 18.8809 18.9445 Columns 239 through 255 19.0082 19.0718 19.1355 19.1991 19.2627 19.3264 19.3900 19.4536 19.5173 19.5809 19.6445 19.7082 19.7718 19.8355 19.8991 19.9627 20.0264 Columns 256 through 272 20.0900 20.1536 20.2173 20.2809 20.3...

15   Pass
p = [30.49,35.54; 34.69,27.29; 28.14,20.74; 19.89,24.95; 21.34,34.09]; cp = [26.97,28.45]; r = 8.75; y_correct = 0; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 30.4900 30.5324 30.5748 30.6173 30.6597 30.7021 30.7445 30.7870 30.8294 30.8718 30.9142 30.9567 30.9991 31.0415 31.0839 31.1264 31.1688 Columns 18 through 34 31.2112 31.2536 31.2961 31.3385 31.3809 31.4233 31.4658 31.5082 31.5506 31.5930 31.6355 31.6779 31.7203 31.7627 31.8052 31.8476 31.8900 Columns 35 through 51 31.9324 31.9748 32.0173 32.0597 32.1021 32.1445 32.1870 32.2294 32.2718 32.3142 32.3567 32.3991 32.4415 32.4839 32.5264 32.5688 32.6112 Columns 52 through 68 32.6536 32.6961 32.7385 32.7809 32.8233 32.8658 32.9082 32.9506 32.9930 33.0355 33.0779 33.1203 33.1627 33.2052 33.2476 33.2900 33.3324 Columns 69 through 85 33.3748 33.4173 33.4597 33.5021 33.5445 33.5870 33.6294 33.6718 33.7142 33.7567 33.7991 33.8415 33.8839 33.9264 33.9688 34.0112 34.0536 Columns 86 through 102 34.0961 34.1385 34.1809 34.2233 34.2658 34.3082 34.3506 34.3930 34.4355 34.4779 34.5203 34.5627 34.6052 34.6476 34.6900 34.6900 34.6238 Columns 103 through 119 34.5577 34.4915 34.4254 34.3592 34.2930 34.2269 34.1607 34.0945 34.0284 33.9622 33.8961 33.8299 33.7637 33.6976 33.6314 33.5653 33.4991 Columns 120 through 136 33.4329 33.3668 33.3006 33.2344 33.1683 33.1021 33.0360 32.9698 32.9036 32.8375 32.7713 32.7052 32.6390 32.5728 32.5067 32.4405 32.3743 Columns 137 through 153 32.3082 32.2420 32.1759 32.1097 32.0435 31.9774 31.9112 31.8451 31.7789 31.7127 31.6466 31.5804 31.5142 31.4481 31.3819 31.3158 31.2496 Columns 154 through 170 31.1834 31.1173 31.0511 30.9849 30.9188 30.8526 30.7865 30.7203 30.6541 30.5880 30.5218 30.4557 30.3895 30.3233 30.2572 30.1910 30.1248 Columns 171 through 187 30.0587 29.9925 29.9264 29.8602 29.7940 29.7279 29.6617 29.5956 29.5294 29.4632 29.3971 29.3309 29.2647 29.1986 29.1324 29.0663 29.0001 Columns 188 through 204 28.9339 28.8678 28.8016 28.7355 28.6693 28.6031 28.5370 28.4708 28.4046 28.3385 28.2723 28.2062 28.1400 28.1400 28.0567 27.9733 27.8900 Columns 205 through 221 27.8067 27.7233 27.6400 27.5567 27.4733 27.3900 27.3067 27.2233 27.1400 27.0567 26.9733 26.8900 26.8067 26.7233 26.6400 26.5567 26.4733 Columns 222 through 238 26.3900 26.3067 26.2233 26.1400 26.0567 25.9733 25.8900 25.8067 25.7233 25.6400 25.5567 25.4733 25.3900 25.3067 25.2233 25.1400 25.0567 Columns 239 through 255 24.9733 24.8900 24.8067 24.7233 24.6400 24.5567 24.4733 24.3900 24.3067 24.2233 24.1400 24.0567 23.9733 23.8900 23.8067 23.7233 23.6400 Columns 256 through 272 23.5567 23.4733 23.3900 23.3067 23.2233 23.1400 23.0567 22.9733 22.8900 22.8067 22.7233 22.6400 22.5567 22.4733 22.3900 22.3067 22.2233 Columns 273 through 289 22.1400 22.0567 21.9733 21.8900 21.8067 21.7233 21.6400 21.5567 21.4733 21.3900 21.3067 21.2233 21.1400 21.0567 20.9733 20.8900 20.8067 Columns 290 through 306 20.7233 20.6400 20.5567 20.4733 20.3900 20.3067 20.2233 20.1400 20.0567 19.9733 19.8900 19.8900 19.9046 19.9193 19.9339 19.9486 19.9632 Columns 307 through 323 19.9779 19.9925 20.0072 20.0218 20.0365 20.0511 20.0658 20.0804 20.0951 20.1097 20.1243 20.1390 20.1536 20.1683 20.1829 20.1976 20.2122 Columns 324 through 340 20.2269 20.2415 20.2562 20.2708 20.2855 20.3001 20.3147 20.3294 20.3440 20.3587 20.3733 20.3880 20.4026 20.4173 20.4319 20.4466 20.4612 Columns 341 through 357 20.4759 20.4905 20.5052 20.5198 20.5344 20.5491 20.5637 20.5784 20.5930 20.6077 20.6223 20.6370 20.6516 20.6663 20.6809 20.6956 20.7102 Columns 358 through 374 20.7248 20.7395 20.7541 20.7688 20.7834 20.7981 20.8127 20.8274 20.8420 20.8567 20.8713 20.8860 20.9006 20.9153 20.9299 20.9445 20.9592 Columns 375 through 391 20.9738 20.9885 21.0031 21.0178 21.0324 21.0471 21.0617 21.0764 21.0910 21.1057 21.1203 21.1349 21.1496 21.1642 21.1789 21.1935 21.2082 Columns 392 through 408 21.2228 21.2375 21.2521 21.2668 21.2814 21.2961 21.3107 21.3254 21.3400 21.3400 21.4324 21.5248 21.6173 21.7097 21.8021 21.8945 21.9870 Columns 409 through 425 22.0794 22.1718 22.2642 22.3567 22.4491 22.5415 22.6339 22.7264 22.8188 22.9112 23.0036 23.0961 23.1885 23.2809 23.3733 23.4658 23.5582 Columns 426 through 442 23.6506 23.7430 23.8355 23.9279 24.0203 24.1127 24.2052 24.2976 24.3900 24.4824 24.5748 24.6673 24.7597 24.8521 24.9445 25.0370 25.1294 Columns 443 through 459 25.2218 25.3142 25.4067 25.4991 25.5915 25.6839 25.7764 25.8688 25.9612 26.0536 26.1461 26.2385 26.3309 26.4233 26.5158 26.6082 26.7006 Columns 460 through 476 26.7930 26.8855 26.9779 27.0703 27.1627 27.2552 27.3476 27.4400 27.5324 27.6248 27.7173 27.8097 27.9021 27.9945 28.0870 28.1794 28.2718 Columns 477 through 493 28.3642 28.4567 28.5491 28.6415 28.7339 28.8264 28.9188 29.0112 29.1036 29.1961 29.2885 29.3809 29.4733 29.5658 29.6582 29.7506 29.8430 Columns 494 through 510 29.9355 30.0279 30.1203 30.2127 30.3052 30.3976 30.4900 30.4900 30.5324 30.5748 30.6173 30.6597 30.7021 30.7445 30.7870 30.8294 30.8718 Columns 511 through 527 30.9142 30.9567 30.9991 31.0415 31.0839 31.1264 31.1688 31.2112 31.2536 31.2961 31.3385 31.3809 31.4233 31.4658 31.5082 31.5506 31.5930 Columns 528 through 544 31.6355 31.6779 31.7203 31.7627 31.8052 31.8476 31.8900 31.9324 31.9748 32.0173 32.0597 32.1021 32.1445 32.1870 32.2294 32.2718 32.3142 Columns 545 through 561 32.3567 32.3991 32.4415 32.4839 32.5264 32.5688 32.6112 32.6536 32.6961 32.7385 32.7809 32.8233 32.8658 32.9082 32.9506 32.9930 33.0355 Columns 562 through 578 33.0779 33.1203 33.1627 33.2052 33.2476 33.2900 33.3324 33.3748 33.4173 33.4597 33.5021 33.5445 33.5870 33.6294 33.6718 33.7142 33.7567 Columns 579 through 595 33.7991 33.8415 33.8839 33.9264 33.9688 34.0112 34.0536 34.0961 34.1385 34.1809 34.2233 34.2658 34.3082 34.3506 34.3930 34.4355 34.4779 Columns 596 through 600 34.5203 34.5627 34.6052 34.6476 34.6900 pentagonY = Columns 1 through 17 35.5400 35.4567 35.3733 35.2900 35.2067 35.1233 35.0400 34.9567 34.8733 34.7900 34.7067 34.6233 34.5400 34.4567 34.3733 34.2900 34.2067 Columns 18 through 34 34.1233 34.0400 33.9567 33.8733 33.7900 33.7067 33.6233 33.5400 33.4567 33.3733 33.2900 33.2067 33.1233 33.0400 32.9567 32.8733 32.7900 Columns 35 through 51 32.7067 32.6233 32.5400 32.4567 32.3733 32.2900 32.2067 32.1233 32.0400 31.9567 31.8733 31.7900 31.7067 31.6233 31.5400 31.4567 31.3733 Columns 52 through 68 31.2900 31.2067 31.1233 31.0400 30.9567 30.8733 30.7900 30.7067 30.6233 30.5400 30.4567 30.3733 30.2900 30.2067 30.1233 30.0400 29.9567 Columns 69 through 85 29.8733 29.7900 29.7067 29.6233 29.5400 29.4567 29.3733 29.2900 29.2067 29.1233 29.0400 28.9567 28.8733 28.7900 28.7067 28.6233 28.5400 Columns 86 through 102 28.4567 28.3733 28.2900 28.2067 28.1233 28.0400 27.9567 27.8733 27.7900 27.7067 27.6233 27.5400 27.4567 27.3733 27.2900 27.2900 27.2238 Columns 103 through 119 27.1577 27.0915 27.0254 26.9592 26.8930 26.8269 26.7607 26.6945 26.6284 26.5622 26.4961 26.4299 26.3637 26.2976 26.2314 26.1653 26.0991 Columns 120 through 136 26.0329 25.9668 25.9006 25.8344 25.7683 25.7021 25.6360 25.5698 25.5036 25.4375 25.3713 25.3052 25.2390 25.1728 25.1067 25.0405 24.9743 Columns 137 through 153 24.9082 24.8420 24.7759 24.7097 24.6435 24.5774 24.5112 24.4451 24.3789 24.3127 24.2466 24.1804 24.1142 24.0481 23.9819 23.9158 23.8496 Columns 154 through 170 23.7834 23.7173 23.6511 23.5849 23.5188 23.4526 23.3865 23.3203 23.2541 23.1880 23.1218 23.0557 22.9895 22.9233 22.8572 22.7910 22.7248 Columns 171 through 187 22.6587 22.5925 22.5264 22.4602 22.3940 22.3279 22.2617 22.1956 22.1294 22.0632 21.9971 21.9309 21.8647 21.7986 21.7324 21.6663 21.6001 Columns 188 through 204 21.5339 21.4678 21.4016 21.3355 21.2693 21.2031 21.1370 21.0708 21.0046 20.9385 20.8723 20.8062 20.7400 20.7400 20.7825 20.8251 20.8676 Columns 205 through 221 20.9101 20.9526 20.9952 21.0377 21.0802 21.1227 21.1653 21.2078 21.2503 21.2928 21.3354 21.3779 21.4204 21.4629 21.5055 21.5480 21.5905 Columns 222 through 238 21.6330 21.6756 21.7181 21.7606 21.8031 21.8457 21.8882 21.9307 21.9732 22.0158 22.0583 22.1008 22.1433 22.1859 22.2284 22.2709 22.3134 Columns 239 through 255 22.3560 22.3985 22.4410 22.4835 22.5261 22.5686 22.6111 22.6536 22.6962 22.7387 22.7812 22.8237 22.8663 22.9088 22.9513 22.9938 23.0364 Columns 256 through 272 23.0789 23.1214 23.1639 23.2065 23.2...

16   Fail
p = [26.97,34.06; 32.37,30.14; 30.31,23.79; 23.63,23.79; 21.57,30.14]; cp = [26.97,28.45]; r = 5; y_correct = 2; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 26.9700 27.0245 27.0791 27.1336 27.1882 27.2427 27.2973 27.3518 27.4064 27.4609 27.5155 27.5700 27.6245 27.6791 27.7336 27.7882 27.8427 Columns 18 through 34 27.8973 27.9518 28.0064 28.0609 28.1155 28.1700 28.2245 28.2791 28.3336 28.3882 28.4427 28.4973 28.5518 28.6064 28.6609 28.7155 28.7700 Columns 35 through 51 28.8245 28.8791 28.9336 28.9882 29.0427 29.0973 29.1518 29.2064 29.2609 29.3155 29.3700 29.4245 29.4791 29.5336 29.5882 29.6427 29.6973 Columns 52 through 68 29.7518 29.8064 29.8609 29.9155 29.9700 30.0245 30.0791 30.1336 30.1882 30.2427 30.2973 30.3518 30.4064 30.4609 30.5155 30.5700 30.6245 Columns 69 through 85 30.6791 30.7336 30.7882 30.8427 30.8973 30.9518 31.0064 31.0609 31.1155 31.1700 31.2245 31.2791 31.3336 31.3882 31.4427 31.4973 31.5518 Columns 86 through 102 31.6064 31.6609 31.7155 31.7700 31.8245 31.8791 31.9336 31.9882 32.0427 32.0973 32.1518 32.2064 32.2609 32.3155 32.3700 32.3700 32.3492 Columns 103 through 119 32.3284 32.3076 32.2868 32.2660 32.2452 32.2243 32.2035 32.1827 32.1619 32.1411 32.1203 32.0995 32.0787 32.0579 32.0371 32.0163 31.9955 Columns 120 through 136 31.9746 31.9538 31.9330 31.9122 31.8914 31.8706 31.8498 31.8290 31.8082 31.7874 31.7666 31.7458 31.7249 31.7041 31.6833 31.6625 31.6417 Columns 137 through 153 31.6209 31.6001 31.5793 31.5585 31.5377 31.5169 31.4961 31.4753 31.4544 31.4336 31.4128 31.3920 31.3712 31.3504 31.3296 31.3088 31.2880 Columns 154 through 170 31.2672 31.2464 31.2256 31.2047 31.1839 31.1631 31.1423 31.1215 31.1007 31.0799 31.0591 31.0383 31.0175 30.9967 30.9759 30.9551 30.9342 Columns 171 through 187 30.9134 30.8926 30.8718 30.8510 30.8302 30.8094 30.7886 30.7678 30.7470 30.7262 30.7054 30.6845 30.6637 30.6429 30.6221 30.6013 30.5805 Columns 188 through 204 30.5597 30.5389 30.5181 30.4973 30.4765 30.4557 30.4348 30.4140 30.3932 30.3724 30.3516 30.3308 30.3100 30.3100 30.2425 30.1751 30.1076 Columns 205 through 221 30.0401 29.9726 29.9052 29.8377 29.7702 29.7027 29.6353 29.5678 29.5003 29.4328 29.3654 29.2979 29.2304 29.1629 29.0955 29.0280 28.9605 Columns 222 through 238 28.8930 28.8256 28.7581 28.6906 28.6231 28.5557 28.4882 28.4207 28.3532 28.2858 28.2183 28.1508 28.0833 28.0159 27.9484 27.8809 27.8134 Columns 239 through 255 27.7460 27.6785 27.6110 27.5435 27.4761 27.4086 27.3411 27.2736 27.2062 27.1387 27.0712 27.0037 26.9363 26.8688 26.8013 26.7338 26.6664 Columns 256 through 272 26.5989 26.5314 26.4639 26.3965 26.3290 26.2615 26.1940 26.1266 26.0591 25.9916 25.9241 25.8567 25.7892 25.7217 25.6542 25.5868 25.5193 Columns 273 through 289 25.4518 25.3843 25.3169 25.2494 25.1819 25.1144 25.0470 24.9795 24.9120 24.8445 24.7771 24.7096 24.6421 24.5746 24.5072 24.4397 24.3722 Columns 290 through 306 24.3047 24.2373 24.1698 24.1023 24.0348 23.9674 23.8999 23.8324 23.7649 23.6975 23.6300 23.6300 23.6092 23.5884 23.5676 23.5468 23.5260 Columns 307 through 323 23.5052 23.4843 23.4635 23.4427 23.4219 23.4011 23.3803 23.3595 23.3387 23.3179 23.2971 23.2763 23.2555 23.2346 23.2138 23.1930 23.1722 Columns 324 through 340 23.1514 23.1306 23.1098 23.0890 23.0682 23.0474 23.0266 23.0058 22.9849 22.9641 22.9433 22.9225 22.9017 22.8809 22.8601 22.8393 22.8185 Columns 341 through 357 22.7977 22.7769 22.7561 22.7353 22.7144 22.6936 22.6728 22.6520 22.6312 22.6104 22.5896 22.5688 22.5480 22.5272 22.5064 22.4856 22.4647 Columns 358 through 374 22.4439 22.4231 22.4023 22.3815 22.3607 22.3399 22.3191 22.2983 22.2775 22.2567 22.2359 22.2151 22.1942 22.1734 22.1526 22.1318 22.1110 Columns 375 through 391 22.0902 22.0694 22.0486 22.0278 22.0070 21.9862 21.9654 21.9445 21.9237 21.9029 21.8821 21.8613 21.8405 21.8197 21.7989 21.7781 21.7573 Columns 392 through 408 21.7365 21.7157 21.6948 21.6740 21.6532 21.6324 21.6116 21.5908 21.5700 21.5700 21.6245 21.6791 21.7336 21.7882 21.8427 21.8973 21.9518 Columns 409 through 425 22.0064 22.0609 22.1155 22.1700 22.2245 22.2791 22.3336 22.3882 22.4427 22.4973 22.5518 22.6064 22.6609 22.7155 22.7700 22.8245 22.8791 Columns 426 through 442 22.9336 22.9882 23.0427 23.0973 23.1518 23.2064 23.2609 23.3155 23.3700 23.4245 23.4791 23.5336 23.5882 23.6427 23.6973 23.7518 23.8064 Columns 443 through 459 23.8609 23.9155 23.9700 24.0245 24.0791 24.1336 24.1882 24.2427 24.2973 24.3518 24.4064 24.4609 24.5155 24.5700 24.6245 24.6791 24.7336 Columns 460 through 476 24.7882 24.8427 24.8973 24.9518 25.0064 25.0609 25.1155 25.1700 25.2245 25.2791 25.3336 25.3882 25.4427 25.4973 25.5518 25.6064 25.6609 Columns 477 through 493 25.7155 25.7700 25.8245 25.8791 25.9336 25.9882 26.0427 26.0973 26.1518 26.2064 26.2609 26.3155 26.3700 26.4245 26.4791 26.5336 26.5882 Columns 494 through 510 26.6427 26.6973 26.7518 26.8064 26.8609 26.9155 26.9700 26.9700 27.0245 27.0791 27.1336 27.1882 27.2427 27.2973 27.3518 27.4064 27.4609 Columns 511 through 527 27.5155 27.5700 27.6245 27.6791 27.7336 27.7882 27.8427 27.8973 27.9518 28.0064 28.0609 28.1155 28.1700 28.2245 28.2791 28.3336 28.3882 Columns 528 through 544 28.4427 28.4973 28.5518 28.6064 28.6609 28.7155 28.7700 28.8245 28.8791 28.9336 28.9882 29.0427 29.0973 29.1518 29.2064 29.2609 29.3155 Columns 545 through 561 29.3700 29.4245 29.4791 29.5336 29.5882 29.6427 29.6973 29.7518 29.8064 29.8609 29.9155 29.9700 30.0245 30.0791 30.1336 30.1882 30.2427 Columns 562 through 578 30.2973 30.3518 30.4064 30.4609 30.5155 30.5700 30.6245 30.6791 30.7336 30.7882 30.8427 30.8973 30.9518 31.0064 31.0609 31.1155 31.1700 Columns 579 through 595 31.2245 31.2791 31.3336 31.3882 31.4427 31.4973 31.5518 31.6064 31.6609 31.7155 31.7700 31.8245 31.8791 31.9336 31.9882 32.0427 32.0973 Columns 596 through 600 32.1518 32.2064 32.2609 32.3155 32.3700 pentagonY = Columns 1 through 17 34.0600 34.0204 33.9808 33.9412 33.9016 33.8620 33.8224 33.7828 33.7432 33.7036 33.6640 33.6244 33.5848 33.5453 33.5057 33.4661 33.4265 Columns 18 through 34 33.3869 33.3473 33.3077 33.2681 33.2285 33.1889 33.1493 33.1097 33.0701 33.0305 32.9909 32.9513 32.9117 32.8721 32.8325 32.7929 32.7533 Columns 35 through 51 32.7137 32.6741 32.6345 32.5949 32.5554 32.5158 32.4762 32.4366 32.3970 32.3574 32.3178 32.2782 32.2386 32.1990 32.1594 32.1198 32.0802 Columns 52 through 68 32.0406 32.0010 31.9614 31.9218 31.8822 31.8426 31.8030 31.7634 31.7238 31.6842 31.6446 31.6051 31.5655 31.5259 31.4863 31.4467 31.4071 Columns 69 through 85 31.3675 31.3279 31.2883 31.2487 31.2091 31.1695 31.1299 31.0903 31.0507 31.0111 30.9715 30.9319 30.8923 30.8527 30.8131 30.7735 30.7339 Columns 86 through 102 30.6943 30.6547 30.6152 30.5756 30.5360 30.4964 30.4568 30.4172 30.3776 30.3380 30.2984 30.2588 30.2192 30.1796 30.1400 30.1400 30.0759 Columns 103 through 119 30.0117 29.9476 29.8834 29.8193 29.7552 29.6910 29.6269 29.5627 29.4986 29.4344 29.3703 29.3062 29.2420 29.1779 29.1137 29.0496 28.9855 Columns 120 through 136 28.9213 28.8572 28.7930 28.7289 28.6647 28.6006 28.5365 28.4723 28.4082 28.3440 28.2799 28.2158 28.1516 28.0875 28.0233 27.9592 27.8951 Columns 137 through 153 27.8309 27.7668 27.7026 27.6385 27.5743 27.5102 27.4461 27.3819 27.3178 27.2536 27.1895 27.1254 27.0612 26.9971 26.9329 26.8688 26.8046 Columns 154 through 170 26.7405 26.6764 26.6122 26.5481 26.4839 26.4198 26.3557 26.2915 26.2274 26.1632 26.0991 26.0349 25.9708 25.9067 25.8425 25.7784 25.7142 Columns 171 through 187 25.6501 25.5860 25.5218 25.4577 25.3935 25.3294 25.2653 25.2011 25.1370 25.0728 25.0087 24.9445 24.8804 24.8163 24.7521 24.6880 24.6238 Columns 188 through 204 24.5597 24.4956 24.4314 24.3673 24.3031 24.2390 24.1748 24.1107 24.0466 23.9824 23.9183 23.8541 23.7900 23.7900 23.7900 23.7900 23.7900 Columns 205 through 221 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 Columns 222 through 238 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 Columns 239 through 255 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 23.7900 Columns 256 through 272 23.7900 23.7900 23.7900 23.7900 23.7...

Assertion failed.

17   Pass
p = [31.35,32.83; 32.49,25.64; 26.00,22.34; 20.85,27.48; 24.16,33.97]; cp = [26.97,28.45]; r = 5.01; y_correct = 3; assert(isequal(circumscribed_pentagon(p,cp,r),y_correct))

pentagonX = Columns 1 through 17 31.3500 31.3615 31.3730 31.3845 31.3961 31.4076 31.4191 31.4306 31.4421 31.4536 31.4652 31.4767 31.4882 31.4997 31.5112 31.5227 31.5342 Columns 18 through 34 31.5458 31.5573 31.5688 31.5803 31.5918 31.6033 31.6148 31.6264 31.6379 31.6494 31.6609 31.6724 31.6839 31.6955 31.7070 31.7185 31.7300 Columns 35 through 51 31.7415 31.7530 31.7645 31.7761 31.7876 31.7991 31.8106 31.8221 31.8336 31.8452 31.8567 31.8682 31.8797 31.8912 31.9027 31.9142 31.9258 Columns 52 through 68 31.9373 31.9488 31.9603 31.9718 31.9833 31.9948 32.0064 32.0179 32.0294 32.0409 32.0524 32.0639 32.0755 32.0870 32.0985 32.1100 32.1215 Columns 69 through 85 32.1330 32.1445 32.1561 32.1676 32.1791 32.1906 32.2021 32.2136 32.2252 32.2367 32.2482 32.2597 32.2712 32.2827 32.2942 32.3058 32.3173 Columns 86 through 102 32.3288 32.3403 32.3518 32.3633 32.3748 32.3864 32.3979 32.4094 32.4209 32.4324 32.4439 32.4555 32.4670 32.4785 32.4900 32.4900 32.4244 Columns 103 through 119 32.3589 32.2933 32.2278 32.1622 32.0967 32.0311 31.9656 31.9000 31.8344 31.7689 31.7033 31.6378 31.5722 31.5067 31.4411 31.3756 31.3100 Columns 120 through 136 31.2444 31.1789 31.1133 31.0478 30.9822 30.9167 30.8511 30.7856 30.7200 30.6544 30.5889 30.5233 30.4578 30.3922 30.3267 30.2611 30.1956 Columns 137 through 153 30.1300 30.0644 29.9989 29.9333 29.8678 29.8022 29.7367 29.6711 29.6056 29.5400 29.4744 29.4089 29.3433 29.2778 29.2122 29.1467 29.0811 Columns 154 through 170 29.0156 28.9500 28.8844 28.8189 28.7533 28.6878 28.6222 28.5567 28.4911 28.4256 28.3600 28.2944 28.2289 28.1633 28.0978 28.0322 27.9667 Columns 171 through 187 27.9011 27.8356 27.7700 27.7044 27.6389 27.5733 27.5078 27.4422 27.3767 27.3111 27.2456 27.1800 27.1144 27.0489 26.9833 26.9178 26.8522 Columns 188 through 204 26.7867 26.7211 26.6556 26.5900 26.5244 26.4589 26.3933 26.3278 26.2622 26.1967 26.1311 26.0656 26.0000 26.0000 25.9480 25.8960 25.8439 Columns 205 through 221 25.7919 25.7399 25.6879 25.6359 25.5838 25.5318 25.4798 25.4278 25.3758 25.3237 25.2717 25.2197 25.1677 25.1157 25.0636 25.0116 24.9596 Columns 222 through 238 24.9076 24.8556 24.8035 24.7515 24.6995 24.6475 24.5955 24.5434 24.4914 24.4394 24.3874 24.3354 24.2833 24.2313 24.1793 24.1273 24.0753 Columns 239 through 255 24.0232 23.9712 23.9192 23.8672 23.8152 23.7631 23.7111 23.6591 23.6071 23.5551 23.5030 23.4510 23.3990 23.3470 23.2949 23.2429 23.1909 Columns 256 through 272 23.1389 23.0869 23.0348 22.9828 22.9308 22.8788 22.8268 22.7747 22.7227 22.6707 22.6187 22.5667 22.5146 22.4626 22.4106 22.3586 22.3066 Columns 273 through 289 22.2545 22.2025 22.1505 22.0985 22.0465 21.9944 21.9424 21.8904 21.8384 21.7864 21.7343 21.6823 21.6303 21.5783 21.5263 21.4742 21.4222 Columns 290 through 306 21.3702 21.3182 21.2662 21.2141 21.1621 21.1101 21.0581 21.0061 20.9540 20.9020 20.8500 20.8500 20.8834 20.9169 20.9503 20.9837 21.0172 Columns 307 through 323 21.0506 21.0840 21.1175 21.1509 21.1843 21.2178 21.2512 21.2846 21.3181 21.3515 21.3849 21.4184 21.4518 21.4853 21.5187 21.5521 21.5856 Columns 324 through 340 21.6190 21.6524 21.6859 21.7193 21.7527 21.7862 21.8196 21.8530 21.8865 21.9199 21.9533 21.9868 22.0202 22.0536 22.0871 22.1205 22.1539 Columns 341 through 357 22.1874 22.2208 22.2542 22.2877 22.3211 22.3545 22.3880 22.4214 22.4548 22.4883 22.5217 22.5552 22.5886 22.6220 22.6555 22.6889 22.7223 Columns 358 through 374 22.7558 22.7892 22.8226 22.8561 22.8895 22.9229 22.9564 22.9898 23.0232 23.0567 23.0901 23.1235 23.1570 23.1904 23.2238 23.2573 23.2907 Columns 375 through 391 23.3241 23.3576 23.3910 23.4244 23.4579 23.4913 23.5247 23.5582 23.5916 23.6251 23.6585 23.6919 23.7254 23.7588 23.7922 23.8257 23.8591 Columns 392 through 408 23.8925 23.9260 23.9594 23.9928 24.0263 24.0597 24.0931 24.1266 24.1600 24.1600 24.2326 24.3053 24.3779 24.4505 24.5231 24.5958 24.6684 Columns 409 through 425 24.7410 24.8136 24.8863 24.9589 25.0315 25.1041 25.1768 25.2494 25.3220 25.3946 25.4673 25.5399 25.6125 25.6852 25.7578 25.8304 25.9030 Columns 426 through 442 25.9757 26.0483 26.1209 26.1935 26.2662 26.3388 26.4114 26.4840 26.5567 26.6293 26.7019 26.7745 26.8472 26.9198 26.9924 27.0651 27.1377 Columns 443 through 459 27.2103 27.2829 27.3556 27.4282 27.5008 27.5734 27.6461 27.7187 27.7913 27.8639 27.9366 28.0092 28.0818 28.1544 28.2271 28.2997 28.3723 Columns 460 through 476 28.4449 28.5176 28.5902 28.6628 28.7355 28.8081 28.8807 28.9533 29.0260 29.0986 29.1712 29.2438 29.3165 29.3891 29.4617 29.5343 29.6070 Columns 477 through 493 29.6796 29.7522 29.8248 29.8975 29.9701 30.0427 30.1154 30.1880 30.2606 30.3332 30.4059 30.4785 30.5511 30.6237 30.6964 30.7690 30.8416 Columns 494 through 510 30.9142 30.9869 31.0595 31.1321 31.2047 31.2774 31.3500 31.3500 31.3615 31.3730 31.3845 31.3961 31.4076 31.4191 31.4306 31.4421 31.4536 Columns 511 through 527 31.4652 31.4767 31.4882 31.4997 31.5112 31.5227 31.5342 31.5458 31.5573 31.5688 31.5803 31.5918 31.6033 31.6148 31.6264 31.6379 31.6494 Columns 528 through 544 31.6609 31.6724 31.6839 31.6955 31.7070 31.7185 31.7300 31.7415 31.7530 31.7645 31.7761 31.7876 31.7991 31.8106 31.8221 31.8336 31.8452 Columns 545 through 561 31.8567 31.8682 31.8797 31.8912 31.9027 31.9142 31.9258 31.9373 31.9488 31.9603 31.9718 31.9833 31.9948 32.0064 32.0179 32.0294 32.0409 Columns 562 through 578 32.0524 32.0639 32.0755 32.0870 32.0985 32.1100 32.1215 32.1330 32.1445 32.1561 32.1676 32.1791 32.1906 32.2021 32.2136 32.2252 32.2367 Columns 579 through 595 32.2482 32.2597 32.2712 32.2827 32.2942 32.3058 32.3173 32.3288 32.3403 32.3518 32.3633 32.3748 32.3864 32.3979 32.4094 32.4209 32.4324 Columns 596 through 600 32.4439 32.4555 32.4670 32.4785 32.4900 pentagonY = Columns 1 through 17 32.8300 32.7574 32.6847 32.6121 32.5395 32.4669 32.3942 32.3216 32.2490 32.1764 32.1037 32.0311 31.9585 31.8859 31.8132 31.7406 31.6680 Columns 18 through 34 31.5954 31.5227 31.4501 31.3775 31.3048 31.2322 31.1596 31.0870 31.0143 30.9417 30.8691 30.7965 30.7238 30.6512 30.5786 30.5060 30.4333 Columns 35 through 51 30.3607 30.2881 30.2155 30.1428 30.0702 29.9976 29.9249 29.8523 29.7797 29.7071 29.6344 29.5618 29.4892 29.4166 29.3439 29.2713 29.1987 Columns 52 through 68 29.1261 29.0534 28.9808 28.9082 28.8356 28.7629 28.6903 28.6177 28.5451 28.4724 28.3998 28.3272 28.2545 28.1819 28.1093 28.0367 27.9640 Columns 69 through 85 27.8914 27.8188 27.7462 27.6735 27.6009 27.5283 27.4557 27.3830 27.3104 27.2378 27.1652 27.0925 27.0199 26.9473 26.8746 26.8020 26.7294 Columns 86 through 102 26.6568 26.5841 26.5115 26.4389 26.3663 26.2936 26.2210 26.1484 26.0758 26.0031 25.9305 25.8579 25.7853 25.7126 25.6400 25.6400 25.6067 Columns 103 through 119 25.5733 25.5400 25.5067 25.4733 25.4400 25.4067 25.3733 25.3400 25.3067 25.2733 25.2400 25.2067 25.1733 25.1400 25.1067 25.0733 25.0400 Columns 120 through 136 25.0067 24.9733 24.9400 24.9067 24.8733 24.8400 24.8067 24.7733 24.7400 24.7067 24.6733 24.6400 24.6067 24.5733 24.5400 24.5067 24.4733 Columns 137 through 153 24.4400 24.4067 24.3733 24.3400 24.3067 24.2733 24.2400 24.2067 24.1733 24.1400 24.1067 24.0733 24.0400 24.0067 23.9733 23.9400 23.9067 Columns 154 through 170 23.8733 23.8400 23.8067 23.7733 23.7400 23.7067 23.6733 23.6400 23.6067 23.5733 23.5400 23.5067 23.4733 23.4400 23.4067 23.3733 23.3400 Columns 171 through 187 23.3067 23.2733 23.2400 23.2067 23.1733 23.1400 23.1067 23.0733 23.0400 23.0067 22.9733 22.9400 22.9067 22.8733 22.8400 22.8067 22.7733 Columns 188 through 204 22.7400 22.7067 22.6733 22.6400 22.6067 22.5733 22.5400 22.5067 22.4733 22.4400 22.4067 22.3733 22.3400 22.3400 22.3919 22.4438 22.4958 Columns 205 through 221 22.5477 22.5996 22.6515 22.7034 22.7554 22.8073 22.8592 22.9111 22.9630 23.0149 23.0669 23.1188 23.1707 23.2226 23.2745 23.3265 23.3784 Columns 222 through 238 23.4303 23.4822 23.5341 23.5861 23.6380 23.6899 23.7418 23.7937 23.8457 23.8976 23.9495 24.0014 24.0533 24.1053 24.1572 24.2091 24.2610 Columns 239 through 255 24.3129 24.3648 24.4168 24.4687 24.5206 24.5725 24.6244 24.6764 24.7283 24.7802 24.8321 24.8840 24.9360 24.9879 25.0398 25.0917 25.1436 Columns 256 through 272 25.1956 25.2475 25.2994 25.3513 25.4...

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!