Re: square number



<dcorbit@xxxxxxxxx> wrote in message
news:1155678816.656595.9750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[snip]

Here is the solution to a related problem:
Given a number, find what number raised to its own power is equal to
that number.
So given 4, the answer is 2 and given 27 the answer is 3. But what if
you are given 5 or 32.123?

This is known to have a solution via Lambert's W function. The equation x^x=y
is solvable as:
x=log(y)/W(log(y)).

Of course, then one requires an algorithm for the principal branch of W with
good precision, but such algorithms exist and can be found with Google.
--
Ioannis

.



Relevant Pages

  • Re: Powers of 5
    ... This should give you the modified algorithm almost immediately. ... Courses with greater emphasis on programming have entered ... require the argument to be a power of 2. ...
    (sci.math)
  • Re: square number
    ... find what number raised to its own power is equal to ... then one requires an algorithm for the principal branch of W ... a shortened solution would be easy to produce. ...
    (sci.math)
  • Re: Ahmadinejad never denied the Holocaust, it was the media.
    ... refereed <snip> ... The stated website is the only one I know of (academic ... Ahmadinejad, rather than deal with the legitimacy ... nuclear power as a means for producing power plants. ...
    (rec.music.beatles)
  • Re: On service to the gods
    ... Halla wrote in response to Jymn: ... [Nuclear Power] ... However the 2 2MW offshore turbines are reckoned to be able to produce ...
    (uk.religion.pagan)
  • Re: PING Andicee: "Migrants flock to WA jobs"
    ... SNIP> ... Power points are different, for a start. ... > Of course, once a country settles on a standard, it is very hard to ... I'm not a licensed electrician, ...
    (misc.survivalism)