Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: Quick n-th Root of BigInteger Date: Sat, 09 Jun 2012 01:05:07 +0200 Organization: albasani.net Lines: 19 Message-ID: References: <0966306a-0c4e-4fde-b452-32125a16bbe1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net GM0fN3gMP/ZbjDGOqy50IgavXX3xrmtUGcgtHnKxFZMgzH91IHc3LQZfJU3mCwzTyVppHhL/3ayo/DbfZc+THBaNSDBxAVYvGEQhHY7GAsqvc9jxoqXcjUCW5Ha1j0At NNTP-Posting-Date: Fri, 8 Jun 2012 23:05:02 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="BYwg6xNJ/OVnto/oLuJw8MlFB2Uug4YLDrME6ip+likXnaIJVyhtJUajKbveubYgFHSLR6I26pIFHLbVcf6Oob2QqBSu6jvV3gYCCZZmOqlrAsmyHxdg5vPG3XkoskAb"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120604 Firefox/13.0 SeaMonkey/2.10 In-Reply-To: Cancel-Lock: sha1:3k37OlFRtNoZCgMDwa46ko56EWY= Xref: csiph.com comp.lang.java.programmer:15133 glen herrmannsfeldt schrieb: > I still feel funny using the exclusive or operator as an > exponential operator. Math.pow seems even worse, so I mostly > use the Fortran ** operator in posts, even though I don't write > so much in Fortran these days. There might be some programming > language that allows for =< though I don't remember which one. @Glen: It would be a use of the exclusive or operator, if it were Java. But since it isn't Java, it is not the exclusive or operator. The ** operator would also be legit, but ^ is for example used in LaTeX for superscript, so it makes sense to use ^ for pow(). If you carefully observe your mail reader, depending on the mail reader you have, you will also see that x ^ 2 is shown as x with superscripted 2, provide the ^ directly follows the x. Bye