{VERSION 4 0 "IBM INTEL NT" "4.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 1 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 2 0 1 0 0 0 0 0 0 1 }{CSTYLE "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "" 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 }{CSTYLE "Help Head ing" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 256 "" 0 1 0 0 0 0 0 1 0 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 1 }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 }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 1 }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 1 }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 212 "This function takes a structure compose d of sets, lists, arrays, tables and/or rtables, and returns its entri es as a sequence (an entry in this case being anything other than a se t, list, array, table or rtable)." }}{PARA 15 "" 0 "" {TEXT -1 390 "Th e entries of an array, table or rtable are returned in order of the in dices, using numerical order for numerical indices and alphabetical or der for indices that are names. The entries of a list or set are retu rned in their order within the list or set (note that the order of ele ments in a set is arbitrary, but once the set exists in Maple its orde r will not change within the session)." }}{PARA 15 "" 0 "" {TEXT -1 29 "This function is part of the " }{TEXT 256 22 "Maple Advisor Databa se" }{TEXT -1 10 " library.." }}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 9 "E xamples:" }}{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 "fl atten(Q);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6*\"\"\"\"\"#\"\"$\"\"%\"\" &\"\"'\"\"(\"\")" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 19 "flatten (Matrix(M));" }}{PARA 11 "" 1 "" {XPPMATH 20 "6&\"\"\"\"\"#\"\"$F$" }} }{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 18 "flatten(Array(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 63 " might not return the entries in the \+ order 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%%&firstG%' secondG%&thirdG" }}}{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 "rtable" 2 "rtable" "" } {TEXT -1 2 ", " }{HYPERLNK 17 "set" 2 "set" "" }{TEXT -1 2 ", " } {TEXT -1 0 "" }{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 6" 4 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 } {PAGENUMBERS 0 1 2 33 1 1 }