- #1

- 179

- 0

f(x) = x^(x^x)

Firstly, is there already an inverse of this function that can be expressed in functions that exist?

And if there isn't, how would I go about computing it in code? Is there a better way than trial and error?

- Thread starter Georgepowell
- Start date

- #1

- 179

- 0

f(x) = x^(x^x)

Firstly, is there already an inverse of this function that can be expressed in functions that exist?

And if there isn't, how would I go about computing it in code? Is there a better way than trial and error?

- #2

- 492

- 0

y = x^(x^x)

ln y = x^x ln x

ln ln y = ln (x^x ln x) = x ln x ln ln x.

Call me crazy, but I don't know whether there exists an explicit expression for x in terms of elementary functions.

To approximate the function in code, several options exist. All of them will boil down to iteratively building up a solution, though. Newton's method could probably be used, or, more simply, just start with 0000000000.00000000000 and, starting at the left, increase a 10's place digit until the x^x^x gets too big, go back to the previous version, and go to a lower power of 10, and continue until you have as much precision as you want. Since x^x^x will grow pretty insanely quickly, you shouldn't have to check much higher than 10.

- #3

- 179

- 0

That is what I thoughtCall me crazy, but I don't know whether there exists an explicit expression for x in terms of elementary functions.

What is Newton's method? A quick Google search hasn't given me anything. A link would be good.To approximate the function in code... Newton's method could probably be used.

- #4

- 179

- 0

I thought that was just what you called it as a general name.

- Replies
- 7

- Views
- 1K

- Replies
- 18

- Views
- 2K

- Replies
- 22

- Views
- 2K

- Last Post

- Replies
- 2

- Views
- 1K

- Last Post

- Replies
- 8

- Views
- 1K

- Last Post

- Replies
- 3

- Views
- 6K

- Replies
- 2

- Views
- 7K

- Last Post

- Replies
- 10

- Views
- 4K

- Last Post

- Replies
- 10

- Views
- 2K

- Last Post

- Replies
- 4

- Views
- 1K