Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Quick n-th Root of BigInteger Date: Fri, 08 Jun 2012 13:55:37 -0700 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 8 Jun 2012 20:55:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="Pnd5J1maQUxxF+Cm4ygNIA"; logging-data="16555"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I1NUqiMxlhyeko65Mir5r26bgeBdsgAg=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:+1C3r14lyelpnjAMnxVPD6ozh/U= Xref: csiph.com comp.lang.java.programmer:15108 On 6/8/2012 1:36 PM, Jan Burse wrote: > Gene Wirchenko schrieb: >> On Fri, 08 Jun 2012 21:03:56 +0200, Jan Burse >> wrote: >> >>> Dear All, >>> >>> What is your favorite algorithm to compute the n-th Square of >>> a BigInteger, i.e. >>> >>> Given: x, n >>> Compute: y = max { z | z^n =< x } >> >> Do you mean the integer part of the nth *root* of z given integer >> x and n? > Sorry, yes root, and z integer. Positive integers? Do you want the complex roots too? ;-) You ask big questions Jan, but I think you need to ask them a little more thoughtfully. I'm confused about the max, the z |, and the =< x. Care to explain what those signify in your question? If you want something besides the real, positive nth root of A=z^n, what do you want? I think "nth root of A" is the correct phrasing, which leads to the wonder what the other mathematical verbiage signifies.