07-Jan-2022 16:32:48 boundary_word_square_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_square() is a library of boundary word functions. boundary_word_area_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_area() returns the area of the polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has area 9 boundary_word_boundary_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_boundary() returns the boundary of a polyomino defined by a given boundary word. rrururullulddldd 1: 0 0 2: 1 0 3: 2 0 4: 2 1 5: 3 1 6: 3 2 7: 4 2 8: 4 3 9: 3 3 10: 2 3 11: 2 4 12: 1 4 13: 1 3 14: 1 2 15: 0 2 16: 0 1 17: 0 0 rurdrururulurullddlldldd 1: 0 0 2: 1 0 3: 1 1 4: 2 1 5: 2 0 6: 3 0 7: 3 1 8: 4 1 9: 4 2 10: 5 2 11: 5 3 12: 4 3 13: 4 4 14: 5 4 15: 5 5 16: 4 5 17: 3 5 18: 3 4 19: 3 3 20: 2 3 21: 1 3 22: 1 2 23: 0 2 24: 0 1 25: 0 0 rurdruuluulldrdldd 1: 0 0 2: 1 0 3: 1 1 4: 2 1 5: 2 0 6: 3 0 7: 3 1 8: 3 2 9: 2 2 10: 2 3 11: 2 4 12: 1 4 13: 0 4 14: 0 3 15: 1 3 16: 1 2 17: 0 2 18: 0 1 19: 0 0 rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd 1: 0 0 2: 1 0 3: 1 1 4: 2 1 5: 2 0 6: 3 0 7: 3 -1 8: 2 -1 9: 2 -2 10: 3 -2 11: 3 -3 12: 4 -3 13: 4 -2 14: 5 -2 15: 5 -1 16: 4 -1 17: 4 0 18: 5 0 19: 5 1 20: 6 1 21: 6 0 22: 7 0 23: 7 1 24: 8 1 25: 8 2 26: 7 2 27: 7 3 28: 6 3 29: 6 2 30: 5 2 31: 5 3 32: 4 3 33: 4 4 34: 5 4 35: 5 5 36: 4 5 37: 4 6 38: 3 6 39: 3 5 40: 2 5 41: 2 4 42: 3 4 43: 3 3 44: 2 3 45: 2 2 46: 1 2 47: 1 3 48: 0 3 49: 0 2 50: -1 2 51: -1 1 52: 0 1 53: 0 0 rurdruuuldluldldrd 1: 0 0 2: 1 0 3: 1 1 4: 2 1 5: 2 0 6: 3 0 7: 3 1 8: 3 2 9: 3 3 10: 2 3 11: 2 2 12: 1 2 13: 1 3 14: 0 3 15: 0 2 16: -1 2 17: -1 1 18: 0 1 19: 0 0 boundary_word_boundary_plot_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_boundary_plot() plots the boundary of a polyomino defined by a given boundary word. Graphics saved as "rrururullulddldd_boundary.png" Graphics saved as "rurdrururulurullddlldldd_boundary.png" Graphics saved as "rurdruuluulldrdldd_boundary.png" Graphics saved as "rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd_boundary.png" Graphics saved as "rurdruuuldluldldrd_boundary.png" boundary_word_centroid_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_centroid() returns the centroid of the polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has centroid (1.72222,1.83333) boundary_word_check_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_check() checks that a boundary word is valid. boundary word "rrudururullulddldd" check is false boundary word "rrururullulddldd" check is true boundary word "rrururullulldldd" check is false boundary word "rrururullwlldldd" check is false boundary_word_is_convex_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_is_convex() reports whether a shape is convex, given its boundary word. F pentomino defined by "ruurulldldrd" is NOT convex I pentomino defined by "ruuuuulddddd" is convex L pentomino defined by "rruluuuldddd" is NOT convex P pentomino defined by "ruruullddd" is NOT convex N pentomino defined by "ruuruuldlddd" is NOT convex T pentomino defined by "ruurullldrdd" is NOT convex U pentomino defined by "rrruuldluldd" is NOT convex V pentomino defined by "rrrulluulddd" is NOT convex W pentomino defined by "rrulululddrd" is NOT convex X pentomino defined by "rurululdldrd" is NOT convex Y pentomino defined by "ruurululdddd" is NOT convex Z pentomino defined by "rruluulldrdd" is NOT convex boundary_word_moment_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_moment() returns the moment of inertia of the polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has moment 17.0556 F pentomino defined by "ruurulldldrd" has moment 5.63333, exact is 5.63333 I pentomino defined by "ruuuuulddddd" has moment 10.8333, exact is 10.8333 L pentomino defined by "rruluuuldddd" has moment 8.43333, exact is 8.43333 P pentomino defined by "ruruullddd" has moment 4.83333, exact is 4.83333 N pentomino defined by "ruuruuldlddd" has moment 7.23333, exact is 7.23333 T pentomino defined by "ruurullldrdd" has moment 6.03333, exact is 6.03333 U pentomino defined by "rrruuldluldd" has moment 6.03333, exact is 6.03333 V pentomino defined by "rrrulluulddd" has moment 7.23333, exact is 7.23333 W pentomino defined by "rrulululddrd" has moment 6.43333, exact is 6.43333 X pentomino defined by "rurululdldrd" has moment 4.83333, exact is 4.83333 Y pentomino defined by "ruurululdddd" has moment 6.83333, exact is 6.83333 Z pentomino defined by "rruluulldrdd" has moment 6.83333, exact is 6.83333 boundary_word_parity_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_parity() returns the parity of the polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has parity -1 Polyomino defined by "rurdrururulurullddlldldd" has parity 3 Polyomino defined by "rurdruuluulldrdldd" has parity 0 Polyomino defined by "rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd" has parity 13 Polyomino defined by "rurdruuuldluldldrd" has parity 4 boundary_word_perimeter_test() MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_perimeter() returns the perimeter of the polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has perimeter 16 boundary_word_plot_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_plot() plots a polyomino defined by a given boundary word. Graphics saved as "rrururullulddldd_plot.png" Graphics saved as "rurdrururulurullddlldldd_plot.png" Graphics saved as "rurdruuluulldrdldd_plot.png" Graphics saved as "rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd_plot.png" Graphics saved as "rurdruuuldluldldrd_plot.png" boundary_word_range_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_range() determines the range of a polyomino defined by a given boundary word. Polyomino defined by "rrururullulddldd" has 0 <= x <= 4, 0 <= y <= 4 Polyomino defined by "rurdrururulurullddlldldd" has 0 <= x <= 5, 0 <= y <= 5 Polyomino defined by "rurdruuluulldrdldd" has 0 <= x <= 3, 0 <= y <= 4 Polyomino defined by "rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd" has -1 <= x <= 8, -3 <= y <= 6 Polyomino defined by "rurdruuuldluldldrd" has -1 <= x <= 3, 0 <= y <= 3 boundary_word_representative_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_representative() returns the representative for a boundary word. boundary word representative cdeab abcde carpathian ancarpathi pathiancar ancarpathi naihtaprac acnaihtapr rrururullulddldd ddlddrrururullul rurdrururulurullddlldldd ddlldlddrurdrururulurull llddlldlddrurdrururuluru ddlldlddrurdrururulurull ddldllddllurulurururdrur ddldllddllurulurururdrur boundary_word_sense_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_sense() returns the sense of the polyomino defined by a given boundary word. Polyomino "F" has boundary word "ruurulldldrd" "ruurulldldrd" has sense 1 "dldrdrruluul" has sense 1 "urululldrddr" has sense 1 "lddldrrurulu" has sense 1 "ullulddrdrur" has sense 1 "rdruruuldlld" has sense 1 "drrdruululdl" has sense 1 "luldlddrurru" has sense 1 boundary_word_transform_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 boundary_word_transform() returns the boundary word of a transformed polyomino. Polyomino "F" has boundary word "ruurulldldrd" "udlr" transforms boundary word to "ruurulldldrd" Graphics saved as "ruurulldldrd_udlr_transform.png" "udrl" transforms boundary word to "dldrdrruluul" Graphics saved as "dldrdrruluul_udrl_transform.png" "dulr" transforms boundary word to "urululldrddr" Graphics saved as "urululldrddr_dulr_transform.png" "durl" transforms boundary word to "lddldrrurulu" Graphics saved as "lddldrrurulu_durl_transform.png" "lrdu" transforms boundary word to "ullulddrdrur" Graphics saved as "ullulddrdrur_lrdu_transform.png" "lrud" transforms boundary word to "rdruruuldlld" Graphics saved as "rdruruuldlld_lrud_transform.png" "rlud" transforms boundary word to "drrdruululdl" Graphics saved as "drrdruululdl_rlud_transform.png" "rldu" transforms boundary word to "luldlddrurru" Graphics saved as "luldlddrurru_rldu_transform.png" pentomino_moment_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 pentomino_moment() returns the moment of inertia for the i-th pentomino. 1 "F" 5.63333 2 "I" 10.8333 3 "L" 8.43333 4 "P" 4.83333 5 "N" 7.23333 6 "T" 6.03333 7 "U" 6.03333 8 "V" 7.23333 9 "W" 6.43333 10 "X" 4.83333 11 "Y" 6.83333 12 "Z" 6.83333 pentomino_symbol_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 pentomino_symbol() returns the symbol for the i-th pentomino. 1 "F" 2 "I" 3 "L" 4 "P" 5 "N" 6 "T" 7 "U" 8 "V" 9 "W" 10 "X" 11 "Y" 12 "Z" pentomino_to_boundary_word_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 pentomino_to_boundary word() returns the boundary word for the i-th pentomino. 1 "F" "ruurulldldrd" 2 "I" "ruuuuulddddd" 3 "L" "rruluuuldddd" 4 "P" "ruruullddd" 5 "N" "ruuruuldlddd" 6 "T" "ruurullldrdd" 7 "U" "rrruuldluldd" 8 "V" "rrrulluulddd" 9 "W" "rrulululddrd" 10 "X" "rurululdldrd" 11 "Y" "ruurululdddd" 12 "Z" "rruluulldrdd" polygon_contains_point_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 polygon_contains_point() determines if a point is in a polygon. The polygon vertices: 1: 0 0 2: 1 0 3: 2 1 4: 1 2 5: 0 2 P Inside ( 1.0000, 1.0000) true ( 3.0000, 4.0000) false ( 0.1000, 1.0000) true ( 0.5000, -0.2500) false polyomino_boundary_word_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 polyomino_boundary_word() returns the boundary word of a polyomino. rurulululddrdd 1 0 0 1 1 0 0 1 1 0 1 0 rrrruuuuulldrdddllurulululddrddd 1 0 0 1 1 1 1 0 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 1 boundary_word_square_test(): Normal end of execution. 07-Jan-2022 16:32:56