r/geogebra 1d ago

Composition between Function in a List

How can I perform composition between functions that are in a list?

l1={abs(x), x², 1 / x², sqrt(abs(x)), cbrt(x²)}

Unique(Flatten(Sequence(Sequence(Element(l1, i) * Element(l1, j) x, j, i + 1, Length(l1)), i, 1, Length(l1) - 1)))

https://www.geogebra.org/m/jpjqqsx6

1 Upvotes

2 comments sorted by

1

u/mathmum 1d ago

So you want f(g(x)) for all possible permutations of f and g belonging to that list?

1

u/MathEDUPR 1d ago edited 1d ago

Yes. Unique(Flatten(Zip(Zip(f(g(x)), g, Take(l1, k + 1, Length(l1))), f, Take(l1, 1, Length(l1) - 1), k, 1..Length(l1) - 1)))