@@ -41,7 +41,7 @@ SetAttributes[tree, Listable];
41
41
(*N-Trees*)
42
42
43
43
44
- treeN [0 , n_ ] := \[FormalY ];
44
+ treeN [0 , n_ ] := { \[FormalY ]} ;
45
45
treeN [1 , n_ ] := Table [Subscript [\[FormalF ], i ], {i , n }];
46
46
treeN [p_ , n_ ] := treeN [p , n ] = Flatten [Outer [Construct , treeN [1 , n ], branches [treeN [# , n ] & , p - 1 ]]];
47
47
SetAttributes [treeN , Listable ];
@@ -51,16 +51,15 @@ SetAttributes[treeN, Listable];
51
51
(*DAE-Trees*)
52
52
53
53
54
- treeDiffAlg [0 ] := \[FormalY ];
54
+ treeDiffAlg [0 ] := { \[FormalY ]} ;
55
55
treeDiffAlg [p_ ] := Join [treeDiff [p ], treeAlg [p ]];
56
56
57
- treeDiff [0 ] := \[FormalY ];
57
+ treeDiff [0 ] := { \[FormalY ]} ;
58
58
treeDiff [1 ] := {\[FormalF ]};
59
59
treeDiff [p_ ] := treeDiff [p ] = Map [\[FormalF ], branches [treeDiffAlg , p - 1 ]];
60
60
61
- treeAlg [0 ] := \[FormalY ];
62
- treeAlg [1 ] := {\[FormalG ][\[FormalF ]]};
63
- treeAlg [p_ ] := treeAlg [k ] = Map [\[FormalG ], Join [branches [treeDiffAlg , p , {2 , p }], treeDiff [p ]]];
61
+ treeAlg [0 ] := {\[FormalY ]};
62
+ treeAlg [p_ ] := treeAlg [p ] = Map [\[FormalG ], Join [branches [treeDiffAlg , p , {2 , p }], treeDiff [p ]]];
64
63
SetAttributes [{treeDiffAlg , treeDiff , treeAlg } , Listable ];
65
64
66
65
0 commit comments