Coding exam data.
Values for your unit-test are below.

Recommended...
Copy-paste this data into your program code.


Some students use Excel or the Calc spreadsheet to help them.

You may also store this data in an external file.
If so, name your file as you like.
But, you must use a complete Odin path to the file in your program!

known input
vector
expected output
new vector with length
compare with actual output
X Y X Y length
1.66622 -4.72532 0.33255 -0.94309 5.009360
-3.58422 -6.24916 -0.49753 -0.86745 7.211362
8.01263 -4.61471 0.86656 -0.49908 9.261506
-0.24896 -5.64986 -0.04402 -0.99903 5.670340
8.95260 7.07561 0.78455 0.62006 11.406243
-8.22569 -0.56500 -0.99765 -0.06853 8.242398
-7.88243 1.68622 -0.97788 0.20919 8.068350
1.80043 0.30440 0.89360 0.44887 5.022194
5.63886 5.59692 0.70974 0.70446 7.938219
-4.96825 -1.80280 -0.94003 -0.34110 5.290743
-4.37391 -5.12892 -0.64888 -0.76089 6.735642
3.62211 -5.52529 0.54825 -0.83632 6.608884
-8.44968 7.78941 -0.73525 0.67780 11.483655
-2.77558 -8.22634 -0.31970 -0.94752 8.679699
2.45988 1.83337 0.80180 0.59759 3.061373
-7.26223 -0.03228 -0.99999 -0.00445 7.269541
-4.43537 -6.45154 -0.56652 -0.82405 7.828153
0.74566 -2.65733 0.27017 -0.96281 2.765095
1.21374 -4.53977 0.25829 -0.96607 4.693255
-1.06505 7.67353 -0.13748 0.99050 7.746026
5.46295 3.86981 0.81601 0.57804 6.686495
4.64347 9.09843 0.45458 0.89071 10.211280
0.93180 5.06637 0.18089 0.98350 5.153629
-4.96591 1.13070 -0.97504 0.22201 5.092066
3.67916 0.53043 0.98977 0.14270 3.710806
6.87309 -6.46924 0.72818 -0.68539 9.436233
-2.00900 8.87063 -0.22088 0.97530 9.100992
6.54416 -1.66674 0.96906 -0.24681 6.754666
-7.79693 5.22112 -0.83091 0.55641 9.389239
4.31955 -6.27618 0.56695 -0.82376 7.613462
7.79019 2.31355 0.95862 0.28469 8.118393
-6.55575 -3.03287 -0.90758 -0.41987 7.229222
6.49756 -0.38190 0.99828 -0.05868 6.511792
2.14886 8.34480 0.24937 0.96841 8.626127
7.21543 2.38018 0.94966 0.31327 7.601302
9.71344 9.47702 0.71576 0.69834 13.561701
4.69814 8.46117 0.48544 0.87427 9.676454
-7.81501 8.71295 -0.66771 0.74442 11.713184
1.02650 0.18998 0.98330 0.18198 1.047054
6.15711 2.22245 0.94060 0.33952 6.548201
-8.15945 -0.85760 -0.99452 -0.10453 8.207019
-2.51280 -3.51720 -0.58132 -0.81368 4.316495
7.86299 -2.80493 0.94187 -0.33599 8.355752
-3.32791 -6.77109 -0.44109 -0.89746 7.535100
-8.30992 5.25600 -0.84514 0.53455 9.824587
3.96894 -7.34303 0.47549 -0.87972 8.341215
1.84695 -7.35029 0.24370 -0.96985 7.576158
3.87216 -2.93965 0.79648 -0.60467 4.866033
5.20275 -4.31597 0.76965 -0.63847 6.751677
1.16683 8.83138 0.13099 0.99138 8.906582
-3.97355 -6.14522 -0.54298 -0.83974 7.319240
-3.91631 -4.90081 -0.62427 -0.78121 6.269469
9.35519 -8.54330 0.73842 -0.67434 12.672125
-6.88632 -0.50091 -0.99736 -0.07255 6.908160
1.14880 4.78576 0.23342 0.97238 4.915942
-8.15389 -8.37661 -0.69752 -0.71657 11.695727
-3.69257 -3.56422 -0.71950 -0.69449 5.138418
-4.73284 -5.86862 -0.62776 -0.77841 7.539041
-3.01384 1.11033 -0.93835 0.34570 3.213512
5.20952 3.06094 0.86219 0.50659 6.046501
3.51765 -3.50754 0.70812 -0.70609 4.972963
4.99155 -4.79159 0.72141 -0.69251 6.914587
8.99416 0.55662 0.99809 0.06177 9.021202
1.18002 -1.10501 0.72993 -0.68353 1.622932
4.33077 3.62795 0.76657 0.64216 5.658092
6.75933 7.46578 0.67116 0.74131 10.063962
-1.42389 -0.11629 -0.99668 -0.08140 1.421560
-7.05535 2.65897 -0.93575 0.35266 7.544984
8.15143 -4.76082 0.86351 -0.50433 9.442654
-0.55242 9.68557 -0.05694 0.99838 9.699143
0.24219 -1.55534 0.15386 -0.98809 1.564528
6.33965 -5.82884 0.73614 -0.67683 8.612182
6.79911 -0.12864 0.99982 -0.01892 6.803542
-2.66286 7.15991 -0.34858 0.93728 7.643701
-2.95637 1.11928 -0.93522 0.35407 3.159568
-6.22175 5.04923 -0.77648 0.63015 8.003776
9.28840 4.54421 0.89826 0.43946 10.338560
4.22977 2.35599 0.87362 0.48661 4.835316
9.80065 -5.54025 0.87053 -0.49211 11.264141
-2.36910 -8.19617 -0.27768 -0.96067 8.525301
0.67519 5.07909 0.13178 0.99128 5.130624
2.23900 3.29238 0.56234 0.82691 3.989763
-5.58834 -0.37552 -0.99775 -0.06705 5.597457
-5.32630 0.72149 -0.99095 0.13423 5.368057
-4.73430 -7.80777 -0.51849 -0.85509 9.139401
3.54822 -2.12418 0.85800 -0.51365 4.138457
1.33557 -3.13838 0.39158 -0.92015 3.418603
-2.33455 5.29990 -0.40311 0.91515 5.798488
0.37898 8.38493 0.04515 0.99898 8.385192
1.67731 -3.72143 0.41091 -0.91168 4.086788
4.90305 -2.82848 0.86620 -0.49970 5.668910
6.89302 -0.60154 0.99621 -0.08694 6.910433
0.59069 3.23696 0.17952 0.98375 3.283713
-8.88723 -7.37837 -0.76940 -0.63877 11.551893
-1.51675 -4.02305 -0.35278 -0.93571 4.304368
-8.72316 0.81129 -0.99570 0.09260 8.760965
-0.80378 -3.15767 -0.24668 -0.96910 3.268230
2.12091 2.17442 0.69824 0.71586 3.033834
8.34595 6.24138 0.80083 0.59889 10.426583
-4.36016 -2.86042 -0.83613 -0.54853 5.219669
9.37654 6.05186 0.84020 0.54228 11.169415
7.67349 4.85721 0.84495 0.53484 9.077001
9.83416 9.35246 0.72463 0.68914 13.561384
0.16375 2.79479 0.05849 0.99829 2.807856
8.63712 -6.95936 0.77868 -0.62742 11.092273
4.21507 3.19600 0.79684 0.60419 5.291898
-0.56262 -7.61729 -0.07366 -0.99728 7.641807
-1.47771 -5.80235 -0.24680 -0.96907 5.984823
9.24951 -2.32282 0.96988 -0.24357 9.543478
-7.46561 7.32580 -0.71376 0.70039 10.451009
6.67826 -6.61482 0.71047 -0.70372 9.395883
5.17997 2.24639 0.91744 0.39787 5.649585
4.28703 -6.56451 0.54679 -0.83727 7.838271
5.63149 -8.64289 0.54592 -0.83784 10.309963
-7.26018 -2.13691 -0.95931 -0.28236 7.567882
1.06074 -2.54615 0.38457 -0.92310 2.758071
4.13103 -5.45092 0.60400 -0.79698 6.844874
-8.12512 -0.68700 -0.99644 -0.08425 8.161535
1.69818 8.51354 0.19561 0.98068 8.677438
0.75993 -1.40285 0.47631 -0.87928 1.589720
1.03263 -5.72963 0.17737 -0.98414 5.817907
-5.37252 2.61218 -0.89933 0.43727 5.969551
9.47527 -1.12090 0.99308 -0.11748 9.541375
5.33295 2.79034 0.88604 0.46360 6.017744
6.33943 -2.92049 0.90825 -0.41842 6.986867
5.39251 -7.83662 0.56687 -0.82380 9.509129
9.67692 8.16261 0.76438 0.64477 12.659748
-3.24025 2.66409 -0.77244 0.63509 4.201448
5.93445 -2.96713 0.89443 -0.44720 6.644416
8.64505 3.18952 0.93818 0.34614 9.222677
-7.93138 -8.44137 -0.68475 -0.72878 11.589112
3.34897 -1.49742 0.91290 -0.40818 3.667643
4.58209 -0.00505 1.00000 -0.00110 4.581543
1.15833 -8.32984 0.13773 -0.99047 8.410343
8.83277 -0.96586 0.99407 -0.10870 8.880258
-8.30177 4.75590 -0.86770 0.49709 9.574004
-8.21124 -5.15857 -0.84677 -0.53197 9.706580
7.03095 -7.87617 0.66594 -0.74600 10.565855
-7.31754 -3.78955 -0.88799 -0.45986 8.245348
3.71303 9.36669 0.36851 0.92962 10.073464
-0.63836 0.62254 -0.71592 0.69818 0.901155
1.29270 3.33502 0.36141 0.93241 3.576399
-7.63084 0.62731 -0.99664 0.08193 7.648755
-4.61680 6.10291 -0.60331 0.79751 7.647921
9.94435 4.89467 0.89721 0.44161 11.090492
6.01851 -6.84009 0.66058 -0.75076 9.118523
-1.62964 -0.42399 -0.96778 -0.25179 1.675036
-1.05730 6.45222 -0.16171 0.98684 6.545434
-2.92525 -3.35176 -0.65754 -0.75342 4.455979
8.98326 -2.82048 0.95408 -0.29955 9.405999
6.80683 -7.78908 0.65803 -0.75299 10.335459
7.31384 -7.88012 0.68028 -0.73295 10.758325
6.01455 1.96777 0.95043 0.31095 6.329881
4.12768 -0.69165 0.98625 -0.16526 4.176802
7.88436 -7.53359 0.72301 -0.69084 10.901090
7.91863 1.95993 0.97071 0.24026 8.151775
7.60817 9.95569 0.60720 0.79455 12.536377
-2.86479 -1.14624 -0.92844 -0.37148 3.078689
0.06468 9.36366 0.00691 0.99998 9.360597
-8.51646 1.49406 -0.98496 0.17279 8.652837
-6.53817 7.87018 -0.63901 0.76920 10.238098
-2.82147 7.26517 -0.36201 0.93217 7.788076
8.73157 -8.33103 0.72351 -0.69032 12.074883
2.62890 4.02133 0.54719 0.83701 4.804117
3.97702 -6.99559 0.49422 -0.86934 8.037163
0.85817 -6.22765 0.13651 -0.99064 6.296424
-6.86400 -1.81366 -0.96682 -0.25546 7.092320
8.68040 0.93807 0.99421 0.10744 8.722142
-1.19174 -2.35122 -0.45210 -0.89197 2.640724
-5.08606 5.81928 -0.65808 0.75295 7.721435
6.48825 -0.06038 0.99996 -0.00931 6.487076
-6.03905 9.93930 -0.51926 0.85462 11.636901
-7.05629 -4.81729 -0.82589 -0.56383 8.546280
-2.04494 -8.89553 -0.22404 -0.97458 9.127120
-1.70919 9.02610 -0.18605 0.98254 9.182791
-0.03582 1.82823 -0.01959 0.99981 1.836240
8.47701 -4.15482 0.89794 -0.44011 9.432975
-8.33553 1.80890 -0.97725 0.21207 8.536554
-8.25149 -4.66781 -0.87039 -0.49237 9.474172
-4.72851 -5.37592 -0.66045 -0.75087 7.156106
-1.19321 7.69763 -0.15318 0.98820 7.795100
7.80210 1.74181 0.97597 0.21789 7.989531
0.76792 7.56351 0.10101 0.99489 7.612115
-0.60825 9.17757 -0.06613 0.99781 9.194937
-4.97725 0.26375 -0.99860 0.05292 4.979164
-7.92735 5.29619 -0.83150 0.55552 9.525674
9.62837 -1.89020 0.98127 -0.19264 9.806264
1.73388 -2.82195 0.52351 -0.85202 3.321577
-5.12432 0.13213 -0.99967 0.02578 5.117789
-8.12605 -8.84457 -0.67656 -0.73639 12.011994
7.71895 8.83483 0.65795 0.75306 11.728288
8.01241 -1.12152 0.99035 -0.13862 8.082659
8.14223 -5.76083 0.81634 -0.57758 9.983297
8.53536 -0.43769 0.99869 -0.05121 8.554637
6.67211 -2.43334 0.93947 -0.34263 7.099784
3.74471 3.17865 0.76238 0.64713 4.919384
-6.68922 -6.75081 -0.70386 -0.71034 9.496989
-6.59538 -2.93112 -0.91382 -0.40612 7.207504
-4.09628 -3.79945 -0.73317 -0.68004 5.580144
4.07903 -8.78628 0.42108 -0.90702 9.688775
-5.54711 2.67366 -0.90082 0.43419 6.149928
-7.76402 2.47218 -0.95286 0.30341 8.155912
9.03884 -6.78444 0.79977 -0.60030 11.304141
5.39421 3.26075 0.85579 0.51732 6.310755
5.50993 -0.29788 0.99854 -0.05398 5.525786
5.77100 5.71631 0.71047 0.70373 8.113557
-8.08315 -4.72761 -0.86320 -0.50486 9.368897
-4.51390 -0.45788 -0.99489 -0.10092 4.535417
-7.78422 7.65329 -0.71308 0.70108 10.908939
0.12547 1.07920 0.11549 0.99331 1.085066
3.29476 -3.32607 0.70376 -0.71044 4.679785
8.93467 1.35181 0.98875 0.14960 9.040512
-8.94607 -2.71632 -0.95686 -0.29054 9.354965
-7.00001 0.39729 -0.99839 0.05666 7.004345
4.66967 -8.90951 0.46422 -0.88572 10.068197
-0.36739 -4.87012 -0.07522 -0.99717 4.884327
-7.21683 8.02200 -0.66881 0.74343 10.791992
-0.89880 3.66000 -0.23849 0.97115 3.760217
9.33393 -7.97918 0.76011 -0.64979 12.287816
2.37263 5.47890 0.39739 0.91765 5.972599
-7.23742 -4.92762 -0.82660 -0.56279 8.749627
4.46966 -5.24885 0.64833 -0.76136 6.892649
-5.15836 -4.40785 -0.76025 -0.64964 6.788253
-0.27798 5.38988 -0.05151 0.99867 5.398101
3.41188 6.62280 0.45797 0.88897 7.441587
0.28280 -6.51321 0.04338 -0.99906 6.518422
-5.49239 2.99397 -0.87802 0.47862 6.261082
-1.52713 9.59855 -0.15712 0.98758 9.718994
-5.32907 5.55830 -0.69207 0.72183 7.708283
9.30944 -8.32256 0.74552 -0.66649 12.480538
-3.73041 4.57504 -0.63194 0.77502 5.907861
-0.03508 9.94798 -0.00353 0.99999 9.940544
6.57078 -1.08937 0.98653 -0.16356 6.656635
1.39742 -2.20109 0.53598 -0.84423 2.611855
9.79288 -6.64434 0.82751 -0.56145 11.831828
-7.04579 8.09206 -0.65667 0.75418 10.725538
3.65036 1.49923 0.92502 0.37991 3.948831
2.17668 1.04565 0.90139 0.43301 2.422122
-4.37931 2.73622 -0.84807 0.52988 5.168140
2.68420 7.93468 0.32045 0.94727 8.375089
-3.15469 -8.14772 -0.36107 -0.93254 8.744226
-1.34881 0.57889 -0.91894 0.39439 1.465627
2.93454 -7.06698 0.38350 -0.92354 7.656664
-8.97492 3.21103 -0.94155 0.33687 9.535387
-5.28974 -4.72040 -0.74612 -0.66581 7.095345
5.32525 -7.25387 0.59178 -0.80610 9.008665
4.48234 -4.22891 0.72737 -0.68625 6.158886
-6.29423 1.49396 -0.97297 0.23094 6.468105
2.34624 0.53009 0.97542 0.22038 2.420374
9.99742 -8.89103 0.74725 -0.66455 13.376878