<?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: Why Does MATLAB Have the Function hypot?</title>
	<atom:link href="http://blogs.mathworks.com/loren/2008/02/07/why-hypot/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/</link>
	<description>Loren Shure works on design of the MATLAB language at MathWorks. She writes here about once a week on MATLAB programming and related topics.</description>
	<lastBuildDate>Thu, 09 Feb 2012 04:19:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-31147</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Thu, 11 Mar 2010 17:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-31147</guid>
		<description>Shahn-

You can use hypot if that is what makes sense.  Here&#039;s &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/ref/hypot.html&quot; rel=&quot;nofollow&quot;&gt;the help page&lt;/a&gt;.  And here&#039;s a few details from it:

c = hypot(a,b) returns the element-wise result of the following equation, computed to avoid underflow and overflow:

c = sqrt(abs(a).^2 + abs(b).^2)

Inputs a and b must follow these rules:

    * Both a and b must be single- or double-precision, floating-point arrays.

    * The sizes of the a and b arrays must either be equal, or one a scalar and the other nonscalar. In the latter case, hypot expands the scalar input to match the size of the nonscalar input.

Best wishes,
Loren</description>
		<content:encoded><![CDATA[<p>Shahn-</p>
<p>You can use hypot if that is what makes sense.  Here&#8217;s <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/hypot.html" rel="nofollow">the help page</a>.  And here&#8217;s a few details from it:</p>
<p>c = hypot(a,b) returns the element-wise result of the following equation, computed to avoid underflow and overflow:</p>
<p>c = sqrt(abs(a).^2 + abs(b).^2)</p>
<p>Inputs a and b must follow these rules:</p>
<p>    * Both a and b must be single- or double-precision, floating-point arrays.</p>
<p>    * The sizes of the a and b arrays must either be equal, or one a scalar and the other nonscalar. In the latter case, hypot expands the scalar input to match the size of the nonscalar input.</p>
<p>Best wishes,<br />
Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahn</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-31146</link>
		<dc:creator>Shahn</dc:creator>
		<pubDate>Thu, 11 Mar 2010 15:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-31146</guid>
		<description>Hi Loren

 I have a binary image and I want to find the distance between every object. I have already computed the centroid for every object. Can Hypot be used for many objects ???</description>
		<content:encoded><![CDATA[<p>Hi Loren</p>
<p> I have a binary image and I want to find the distance between every object. I have already computed the centroid for every object. Can Hypot be used for many objects ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-26106</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Mon, 11 Feb 2008 12:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-26106</guid>
		<description>Hal-

norm is also careful to scale results, like abs and hypot.

--Loren</description>
		<content:encoded><![CDATA[<p>Hal-</p>
<p>norm is also careful to scale results, like abs and hypot.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hal K</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-26099</link>
		<dc:creator>Hal K</dc:creator>
		<pubDate>Mon, 11 Feb 2008 10:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-26099</guid>
		<description>Loren,
Does hypot(a,a) any different from norm([a a])?

Hal</description>
		<content:encoded><![CDATA[<p>Loren,<br />
Does hypot(a,a) any different from norm([a a])?</p>
<p>Hal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loren</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25966</link>
		<dc:creator>Loren</dc:creator>
		<pubDate>Sat, 09 Feb 2008 02:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25966</guid>
		<description>Duane-

Thanks for pointing out that abs is also implemented robustly.

--Loren</description>
		<content:encoded><![CDATA[<p>Duane-</p>
<p>Thanks for pointing out that abs is also implemented robustly.</p>
<p>&#8211;Loren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duane Hanselman</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25955</link>
		<dc:creator>Duane Hanselman</dc:creator>
		<pubDate>Fri, 08 Feb 2008 15:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25955</guid>
		<description>Before hypot existed, I used a=abs(complex(a,b)); In doing so, I was able to tap the robustness of the abs() function.</description>
		<content:encoded><![CDATA[<p>Before hypot existed, I used a=abs(complex(a,b)); In doing so, I was able to tap the robustness of the abs() function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quan</title>
		<link>http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25919</link>
		<dc:creator>Quan</dc:creator>
		<pubDate>Fri, 08 Feb 2008 00:24:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/#comment-25919</guid>
		<description>That was a pretty interesting post Loren.  I&#039;m not sure if it will affect the way I do things around here, but it&#039;s something that could come in useful in the future.  Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>That was a pretty interesting post Loren.  I&#8217;m not sure if it will affect the way I do things around here, but it&#8217;s something that could come in useful in the future.  Thanks for the tip!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

