{VERSION 2 3 "IBM INTEL NT" "2.3" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 2 0 1 0 0 0 0 0 0 } {CSTYLE "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 0 0 0 0 0 0 }{CSTYLE " " 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 }{CSTYLE "Help Heading" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Heading 1" 0 3 1 {CSTYLE "" -1 -1 "" 1 18 0 0 0 0 0 1 0 0 0 0 0 0 0 }1 0 0 0 8 4 0 0 0 0 0 0 -1 0 }{PSTYLE "Maple Output" 0 11 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }3 3 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Bullet Item" 0 15 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 }0 0 0 -1 3 3 0 0 0 0 0 0 15 2 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "Function:" }{TEXT -1 66 " \+ flatten - entries of a structure involving lists, sets, or arrays" }} {PARA 0 "" 0 "" {TEXT 26 18 "Calling sequence:\n" }{MPLTEXT 0 21 14 "f latten(expr);" }}{PARA 0 "" 0 "" {TEXT 26 11 "Parameters:" }}{PARA 0 " " 0 "" {TEXT -1 2 " " }{MPLTEXT 0 21 5 "expr " }{TEXT -1 16 "- the ex pression" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 12 "Description:" }} {PARA 15 "" 0 "" {TEXT -1 195 "This function takes a structure compose d of sets, lists, arrays and/or tables, and returns its entries as a s equence (an entry in this case being anything other than a set, list, \+ array or table)." }}{PARA 15 "" 0 "" {TEXT -1 382 "The entries of an a rray or table are returned in order of the indices, using numerical or der for numerical indices and alphabetical order for indices that are \+ names. The entries of a list or set are returned in their order withi n the list or set (note that the order of elements in a set is arbitra ry, but once the set exists in Maple its order will not change within \+ the session)." }}{PARA 15 "" 0 "" {TEXT -1 106 "This function is part \+ of the Maple Advisor Database library, and must be loaded before use b y the command " }{MPLTEXT 0 21 17 "readlib(flatten);" }{TEXT -1 1 "." }}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 9 "Examples:" }}{EXCHG {PARA 0 "> \+ " 0 "" {MPLTEXT 1 0 17 "readlib(flatten):" }}}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 26 "flatten([\{\{a,b\},\{c,d\}\}]); " }}{PARA 11 "" 1 " " {XPPMATH 20 "6&%\"aG%\"bG%\"cG%\"dG" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 26 "M:= matrix([[1,2],[3,2]]);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"MG-%'MATRIXG6#7$7$\"\"\"\"\"#7$\"\"$F+" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 11 "flatten(M);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6&\"\"\"\"\"#\"\"$F$" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 56 "Q:= array(1..2,1..2,1..2,[[[1,2],[3,4]],[[5,6],[7,8]] ]):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 11 "flatten(Q);" }} {PARA 11 "" 1 "" {XPPMATH 20 "6*\"\"\"\"\"#\"\"$\"\"%\"\"&\"\"'\"\"(\" \")" }}}{PARA 0 "" 0 "" {TEXT -1 26 "In the following example, " } {MPLTEXT 0 21 1 "T" }{TEXT -1 86 " is implicitly constructed as a tabl e by assigning values to its elements. Note that " }{MPLTEXT 0 21 16 "convert(T, list)" }{TEXT -1 62 " does not return the entries in the o rder of the indices, but " }{MPLTEXT 0 21 10 "flatten(T)" }{TEXT -1 7 " does. " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 42 "T[1]:= first: T[ 3]:= third: T[2]:= second:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 16 "convert(T,list);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#7%%&thirdG%&fi rstG%'secondG" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 11 "flatten(T) ;" }}{PARA 11 "" 1 "" {XPPMATH 20 "6%%&firstG%'secondG%&thirdG" }}}} {SECT 0 {PARA 3 "" 0 "" {TEXT 26 10 "See also: " }}{PARA 0 "" 0 "" {HYPERLNK 17 "array" 2 "array" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "conv ert(list)" 2 "convert,list" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "list" 2 "list" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "set" 2 "set" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "table" 2 "table" "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 23 "Maple Advisor Database " }{TEXT -1 15 " R. Israel 1998" } }}}{MARK "3 1 0" 4 }{VIEWOPTS 1 1 0 1 1 1803 }