Cody

Solution 2133538

Submitted on 19 Feb 2020 by Piotr Lesniewski
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
h = 0.065; % stepsize t = -10:h:10; for tr = 1:1000 sigCoefs = 2*rand(1,3)-1; sig = polyval(sigCoefs,t); breakPoint = randi(length(sig)-2)+1; sig(breakPoint) = (1.01)*sig(breakPoint); assert(any(abs(findAJerk(sig) - breakPoint)<=6)) % extra wide window out of kindness end

A = 0.0030 -0.9338 72.3002 A = 0.0024 -0.7808 62.9052 A = 0.0019 -0.6249 51.3033 A = 0.0029 -0.8606 64.1511 A = -0.0010 0.3116 -23.5421 A = -0.0024 0.7862 -63.3660 A = -0.0003 0.1636 -17.1522 A = -0.0038 1.1616 -89.3848 A = -0.0014 0.3958 -27.9487 A = 0.0004 -0.1211 10.1295 A = 0.0032 -1.0012 78.7707 A = 0.0021 -0.6353 48.9267 A = 0.0032 -0.9975 78.0070 A = -0.0001 -0.0105 3.4558 A = 0.0039 -1.2464 99.3233 A = -0.0016 0.4808 -35.2412 A = -0.0036 1.0720 -80.7937 A = 0.0028 -0.8157 57.5782 A = -0.0029 0.9304 -75.4633 A = -0.0040 1.2863 -102.1427 A = -0.0020 0.6686 -55.3491 A = 0.0026 -0.7906 59.5788 A = 0.0031 -1.0091 82.0920 A = -0.0040 1.2580 -98.6606 A = -0.0031 0.9942 -81.0024 A = 0.0001 -0.0739 8.3365 A = -0.0024 0.7914 -65.2785 A = -0.0010 0.2473 -15.1492 A = 0.0027 -0.8819 70.7650 A = 0.0006 -0.1656 11.3947 A = -0.0025 0.7622 -58.1716 A = -0.0030 0.8535 -61.0510 A = -0.0027 0.8683 -70.1584 A = -0.0014 0.4179 -29.2687 A = 0.0013 -0.4172 32.9549 A = -0.0020 0.6286 -50.3130 A = 0.0012 -0.3089 19.8416 A = 0.0025 -0.7940 61.8893 A = 0.0038 -1.1808 89.6285 A = -0.0008 0.2507 -20.5877 A = 0.0038 -1.1998 93.6686 A = -0.0010 0.3407 -29.4151 A = -0.0025 0.7757 -59.3475 A = 0.0026 -0.8252 66.1653 A = 0.0005 -0.1320 7.4716 A = -0.0034 1.0659 -82.6143 A = 0.0003 -0.0471 0.2088 A = 0.0031 -0.9669 74.3863 A = 0.0021 -0.6254 47.2995 A = -0.0015 0.4532 -34.8070 A = -0.0024 0.7630 -61.6520 A = 0.0041 -1.3036 102.9924 A = 0.0004 -0.0768 1.6259 A = -0.0027 0.8373 -65.3751 A = -0.0015 0.4099 -27.9194 A = -0.0035 1.1323 -90.5661 A = -0.0018 0.5051 -36.0248 A = 0.0034 -1.0389 80.2234 A = 0.0012 -0.4359 38.0192 A = -0.0002 0.1142 -10.9867 A = -0.0032 1.0097 -80.0402 A = 0.0010 -0.3634 31.5883 A = 0.0029 -0.9314 76.5519 A = 0.0006 -0.1618 9.6515 A = 0.0030 -0.8819 64.0635 A = 0.0004 -0.1192 8.6323 A = 0.0013 -0.4197 34.0049 A = 0.0009 -0.2905 23.3164 A = -0.0023 0.7251 -57.8951 A = -0.0014 0.4973 -42.4365 A = -0.0005 0.1762 -14.0348 A = -0.0029 0.8375 -59.3356 A = -0.0023 0.6448 -46.2998 A = 0.0003 -0.0514 -0.3809 A = -0.0013 0.3876 -29.6557 A = 0.0018 -0.5465 41.4676 A = 0.0001 -0.0515 6.7925 A = 0.0030 -0.9944 82.1215 A = -0.0035 1.1135 -89.2808 A = -0.0007 0.2310 -20.3896 A = 0.0023 -0.6845 50.5217 A = 0.0000 0.0202 -4.0419 A = -0.0032 1.0130 -81.4773 A = -0.0007 0.1668 -8.9674 A = -0.0032 1.0361 -82.8316 A = -0.0035 1.0220 -74.8794 A = -0.0012 0.3806 -30.4983 A = -0.0024 0.7853 -64.5959 A = 0.0001 0.0020 -1.1228 A = -0.0020 0.6349 -51.3968 A = -0.0002 0.1195 -12.6577 A = 0.0041 -1.2810 100.6043 A = -0.0036 1.1502 -90.0212 A = 0.0036 -1.0570 76.9485 A = -0.0017 0.5591 -44.9997 A = -0.0018 0.5471 -40.4752 A = -0.0014 0.4639 -37.8979 A = -0.0040 1.2565 -97.5935 A = 0.0004 -0.0755 3.5412 A = 0.0012 -0.4382 37.4172 A = -0.0030 0.8740 -63.1294 A = -0.0026 0.7698 -55.5711 A = -0.0016 0.4806 -34.5332 A = 0.0010 -0.2930 20.7241 A = 0.0009 -0.2075 11.3935 A = -0.0016 0.5019 -40.2721 A = -0.0009 0.2965 -24.5998 A = -0.0040 1.2093 -90.5364 A = 0.0008 -0.2390 18.9745 A = -0.0015 0.4734 -37.5417 A = -0.0023 0.7180 -55.6294 A = -0.0037 1.1411 -89.6296 A = -0.0004 0.1373 -13.5725 A = 0.0039 -1.1733 88.0560 A = 0.0026 -0.8078 62.5797 A = -0.0012 0.4289 -37.1319 A = -0.0026 0.7734 -58.4067 A = -0.0027 0.8839 -72.0919 A = -0.0037 1.1526 -89.4401 A = 0.0031 -0.9384 70.3890 A = 0.0004 -0.1743 15.8851 A = -0.0007 0.2336 -18.5420 A = -0.0040 1.2139 -91.9398 A = 0.0022 -0.6865 55.0694 A = -0.0039 1.2100 -94.6481 A = -0.0019 0.6111 -50.1632 A = -0.0016 0.4604 -31.5441 A = -0.0031 0.9767 -76.9931 A = -0.0023 0.7572 -61.0915 A = -0.0006 0.1658 -9.5020 A = 0.0002 -0.0260 -0.7686 A = 0.0036 -1.1459 92.7543 A = -0.0040 1.2368 -94.3098 A = -0.0012 0.4148 -34.9553 A = -0.0013 0.3547 -24.5217 A = 0.0005 -0.1345 10.1694 A = 0.0031 -1.0174 82.5212 A = 0.0018 -0.5205 36.2766 A = -0.0027 0.7934 -57.2608 A = 0.0033 -1.0398 81.0703 A = -0.0017 0.5517 -44.1976 A = 0.0037 -1.1191 84.0885 A = -0.0023 0.7070 -53.4910 A = -0.0040 1.2517 -96.8577 A = -0.0005 0.1069 -3.5616 A = -0.0031 0.9698 -76.9888 A = 0.0009 -0.2516 16.8519 A = 0.0040 -1.1905 89.4311 A = 0.0014 -0.4534 35.2637 A = 0.0007 -0.2016 12.7654 A = -0.0032 1.0532 -86.2909 A = -0.0025 0.7694 -58.6469 A = 0.0012 -0.4441 39.6243 A = -0.0004 0.0789 -2.2541 A = -0.0015 0.5175 -44.0732 A = 0.0004 -0.1725 18.3646 A = -0.0020 0.5644 -38.8105 A = -0.0007 0.1746 -8.8215 A = -0.0026 0.7725 -55.8002 A = -0.0030 0.9315 -72.4803 A = -0.0041 1.2427 -94.9371 A = -0.0025 0.7628 -58.4620 A = -0.0020 0.6212 -47.6865 A = 0.0039 -1.1473 83.8072 A = 0.0005 -0.1188 7.6611 A = -0.0020 0.6541 -52.6244 A = 0.0034 -1.0282 78.8250 A = 0.0001 0.0095 -4.2008 A = -0.0042 1.2961 -100.6191 A = 0.0038 -1.1253 81.8301 A = -0.0023 0.6888 -51.4710 A = -0.0011 0.2871 -17.5186 A = 0.0002 -0.0732 5.4779 A = 0.0022 -0.6637 50.5559 A = 0.0015 -0.4232 28.2962 A = -0.0018 0.4852 -32.1713 A = 0.0017 -0.5246 40.4684 A = 0.0008 -0.1899 11.3626 A = -0.0007 0.2398 -19.4940 A = -0.0038 1.1352 -84.4833 A = 0.0026 -0.8578 69.7140 A = 0.0010 -0.2789 18.6049 A = 0.0040 -1.1965 89.9425 A = 0.0036 -1.0604 78.0781 A = 0.0005 -0.1621 11.2338 A = 0.0033 -1.0181 78.5237 A = 0.0014 -0.4919 40.6919 A = -0.0025 0.8033 -62.9050 A = -0.0037 1.1060 -81.4169 A = 0.0026 -0.8174 64.0036 A = 0.0020 -0.6539 54.3454 A = -0.0019 0.6468 -53.8111 A = -0.0000 -0.0208 3.8073 A = -0.0021 0.6649 -54.0873 A = 0.0025 -0.7165 51.6934 A = 0.0035 -1.0922 85.3753 A = 0.0010 -0.3349 27.2160 A = -0.0025 0.7689 -59.0475 A = 0.0023 -0.7510 61.8167 A = 0.0035 -1.1333 91.0643 A = -0.0022 0.6667 -50.7118 A = 0.0010 -0.3882 34.7456 A = 0.0005 -0.2288 22.9599 A = 0.0029 -0.9214 73.3079 A = 0.0034 -1.0524 82.6939 A = -0.0027 0.8536 -68.1705 A = 0.0036 -1.1507 90.6959 A = -0.0008 0.1886 -10.7098 A = 0.0002 -0.0193 -1.5919 A = -0.0012 0.4077 -34.5039 A = 0.0022 -0.6411 47.0452 A = -0.0009 0.2550 -18.0230 A = 0.0019 -0.5905 45.0785 A = 0.0029 -0.9184 73.0299 A = -0.0029 0.8552 -62.5584 A = 0.0002 -0.0653 4.0350 A = -0.0010 0.3836 -34.6618 A = -0.0019 0.6141 -50.4880 A = -0.0037 1.2044 -97.6512 A = 0.0034 -1.0406 80.5989 A = 0.0006 -0.2143 19.9264 A = 0.0022 -0.7327 60.6748 A = -0.0012 0.3754 -29.0308 A = -0.0007 0.1774 -10.5360 A = 0.0024 -0.7028 50.5448 A = 0.0002 -0.0227 -0.7934 A = 0.0033 -0.9941 73.6856 A = 0.0015 -0.4793 38.6959 A = -0.0025 0.7447 -55.8979 A = 0.0022 -0.7065 56.4464 A = 0.0019 -0.5874 46.8374 A = -0.0036 1.0423 -76.3626 A = -0.0010 0.3700 -34.1475 A = 0.0023 -0.6693 49.2881 A = 0.0010 -0.2840 21.7242 A = 0.0012 -0.4172 37.2253 A = 0.0036 -1.1550 94.6013 A = -0.0004 0.1867 -18.7625 A = -0.0039 1.2476 -99.9930 A = -0.0000 -0.0567 9.6651 A = 0.0038 -1.1791 92.8977 A = 0.0031 -0.9373 71.2826 A = -0.0042 1.2990 -100.6609 A = 0.0024 -0.7629 60.5317 A = -0.0002 0.0458 -1.2616 A = -0.0018 0.5466 -42.0381 A = -0.0037 1.0798 -79.0154 A = 0.0004 -0.1553 13.5844 A = 0.0014 -0.4010 26.7838 A = -0.0041 1.3080 -104.0596 A = 0.0017 -0.4964 35.9557 A = -0.0035 1.0800 -81.9427 A = -0.0005 0.1378 -9.6094 A = -0.0021 0.6175 -46.7415 A = 0.0028 -0.8326 60.6727 A = -0.0003 0.0514 -0.0039 A = 0.0009 -0.2117 12.0360 A = -0.0039 1.1675 -88.2655 A = -0.0027 0.7877 -56.2823 A = -0.0026 0.8656 -71.4540 A = 0.0034 -1.0353 79.5153 A = -0.0008 0.2232 -13.6283 A = 0.0002 -0.0376 1.4368 A = ...

Suggested Problems

More from this Author1