1
$\begingroup$

Let's say I have a function like the following:

$$f(y, x)=x^2+y$$

If I wanted to nest this in itself, I could do:

$$f_1(y, x)=f(y, f(y, x))$$

Now that I've defined what I mean, I pose the following question: using only the features available in Desmos (most mathematical functions, but no extra gizmos like recursion), how could I enter a function $f_2$ which is equivalent to $f$ nested in itself $n$ times?

E.g:

$$f_2(n, y, x)=(...)$$

such that if I do:

$$f_2(3, a, b)=f(a, f(a, f(a, b)))=((b^2+a)^2+a)^2+a$$

Note that this is not my function, and the real function I am using for $f$ is a lot more complicated and cannot be simplified into a product or sum function.

$\endgroup$
2
  • $\begingroup$ Unfortunately Desmos doesn't support function iteration... I wish! $\endgroup$
    – user519413
    May 23, 2019 at 16:23
  • $\begingroup$ I know this doesn't directly address the question, but I do recall reading somewhere a couple months ago that Desmos is aiming to incorporate recursion sometime in early 2020. I just tried finding where I read it and sadly came up empty, but I think it was either on Facebook or Twitter. $\endgroup$ Dec 23, 2019 at 5:12

0

You must log in to answer this question.

Browse other questions tagged .