<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Approximation of sqrt(x) in Java</title>
	<atom:link href="http://martin.ankerl.com/2009/01/05/approximation-of-sqrtx-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://martin.ankerl.com/2009/01/05/approximation-of-sqrtx-in-java/</link>
	<description>Chunky bacon!!</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:00:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Russ Calvert</title>
		<link>http://martin.ankerl.com/2009/01/05/approximation-of-sqrtx-in-java/#comment-736</link>
		<dc:creator>Russ Calvert</dc:creator>
		<pubDate>Fri, 15 Oct 2010 03:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://martin.ankerl.com/?p=195#comment-736</guid>
		<description>I&#039;ve been checking this out and have a few observations.

The method doesn&#039;t deal sensibly with a negative, infinite, or NaN parameter.

The errors become larger than stated for parameters below about 1.9E-308, and become extremely large below about 1.0E-310.

For positive parameters above 1.9E-308 I agree with the error and speedup figures, but find that I get an additional 10% speed improvement (for zero repetitions) by replacing &#039;doubleToLongBits&#039; with &#039;doubleToRawLongBits&#039;.

An &#039;invsqrt&#039; method can be created in a similar way from the &#039;pow&#039; approximation, replacing &#039;b&#039; with -0.5 instead of 0.5.  This has similar errors, speedup, and limitations to the &#039;sqrt&#039; method.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been checking this out and have a few observations.</p>
<p>The method doesn&#8217;t deal sensibly with a negative, infinite, or NaN parameter.</p>
<p>The errors become larger than stated for parameters below about 1.9E-308, and become extremely large below about 1.0E-310.</p>
<p>For positive parameters above 1.9E-308 I agree with the error and speedup figures, but find that I get an additional 10% speed improvement (for zero repetitions) by replacing &#8216;doubleToLongBits&#8217; with &#8216;doubleToRawLongBits&#8217;.</p>
<p>An &#8216;invsqrt&#8217; method can be created in a similar way from the &#8216;pow&#8217; approximation, replacing &#8216;b&#8217; with -0.5 instead of 0.5.  This has similar errors, speedup, and limitations to the &#8216;sqrt&#8217; method.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/3 queries in 0.003 seconds using disk: basic
Object Caching 333/334 objects using disk: basic

Served from: martin.ankerl.com @ 2012-02-08 22:31:43 -->
