[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [FUN] CodeGolf: solve equation x^x=C
- From: Xavier Wang <weasley.wx@...>
- Date: Fri, 28 Jun 2019 20:39:31 +0800
> On Jun 28, 2019, at 6:42 AM, Xavier Wang <weasley.wx@gmail.com> wrote:
>
> btw, why (ln(C)+x)/(ln(x)+1) can be simplify to math.log(C,x)?
x^x = c
x ln(x) = ln(c)
x = ln(c)/ln(x) = log(c,x)
Above iterated solution converge only if denominator ln(x) > 1
x > e
c = x^x > e^e ~ 15.155 < 15.5
Thanks! I got it.
--
regards,
Xavier Wang.