composite function simplify expressions and strings

asked 2022-05-04 17:04:13 +0200

nerak99 gravatar image

updated 2022-05-04 17:04:54 +0200

I am using code like


to explore some composite functions f, g and h in the example line above

I think the line f(x) = x^2-2x+3 (for example) returns f(x) as an 'expression'

I think my lack of understanding of the nature of my expressions may be causing me issues.

I would like to be able to generate a loop so that I can tabulate things like


then gf(x)

then ggf(x), gggf(x) ... etc upto a large number of g's

without having to run the code with x=simplify(f(k))

and then

x=simplify(g(f(k))) etc etc all separately

How can I do this? Any help much appreciated (obvs).

BTW, feel free to correct my tags

edit retag flag offensive close merge delete