Re: [FUN] CodeGolf: solve equation x^x=C
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [FUN] CodeGolf: solve equation x^x=C
- From: Albert Chan <albertmcchan@...>
- Date: 2019年6月28日 08:37:32 -0400
> 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