<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Comparing Two Numerics</title>
	<atom:link href="http://justrakudoit.wordpress.com/2010/05/22/comparing-two-numerics/feed/" rel="self" type="application/rss+xml" />
	<link>http://justrakudoit.wordpress.com/2010/05/22/comparing-two-numerics/</link>
	<description>I Never Metaop I Didn&#039;t Like</description>
	<lastBuildDate>Thu, 07 Mar 2013 12:58:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: colomon</title>
		<link>http://justrakudoit.wordpress.com/2010/05/22/comparing-two-numerics/#comment-41</link>
		<dc:creator><![CDATA[colomon]]></dc:creator>
		<pubDate>Sun, 23 May 2010 11:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://justrakudoit.wordpress.com/?p=61#comment-41</guid>
		<description><![CDATA[The notion is to provide an ordering which &quot;fits in&quot;, for the purposes of things like sort.  Consider sorting a set of real numbers.  This proposal makes the numbers sort the same way no matter whether their representation is Real, Complex, or some combination of the two.

If you did want to sort on their magnitude instead, it is a simple matter of saying &lt;code&gt;sort({ .abs })&lt;/code&gt; -- and again, this works the same way whether you have Reals or Complexes.

Mind you, the decision to work this way is informed by my sense that people usually do not define an ordering on Complex numbers.  (For instance, a quick check suggests the C++ standard does not define any comparison operators for Complex numbers.)  If you have more knowledge on this subject I&#039;m certainly interested in hearing it.

This is by no means set in stone yet.  For sure one thing I&#039;m still thinking about is whether the list of reals should be automatically extended with zeroes, so that -4 == (-4 + 0i). Yesterday I thought the answer was no, typing this today I&#039;m inclined to think it should be yes.]]></description>
		<content:encoded><![CDATA[<p>The notion is to provide an ordering which &#8220;fits in&#8221;, for the purposes of things like sort.  Consider sorting a set of real numbers.  This proposal makes the numbers sort the same way no matter whether their representation is Real, Complex, or some combination of the two.</p>
<p>If you did want to sort on their magnitude instead, it is a simple matter of saying <code>sort({ .abs })</code> &#8212; and again, this works the same way whether you have Reals or Complexes.</p>
<p>Mind you, the decision to work this way is informed by my sense that people usually do not define an ordering on Complex numbers.  (For instance, a quick check suggests the C++ standard does not define any comparison operators for Complex numbers.)  If you have more knowledge on this subject I&#8217;m certainly interested in hearing it.</p>
<p>This is by no means set in stone yet.  For sure one thing I&#8217;m still thinking about is whether the list of reals should be automatically extended with zeroes, so that -4 == (-4 + 0i). Yesterday I thought the answer was no, typing this today I&#8217;m inclined to think it should be yes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim B</title>
		<link>http://justrakudoit.wordpress.com/2010/05/22/comparing-two-numerics/#comment-40</link>
		<dc:creator><![CDATA[Jim B]]></dc:creator>
		<pubDate>Sun, 23 May 2010 05:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://justrakudoit.wordpress.com/?p=61#comment-40</guid>
		<description><![CDATA[What the hell?  In the case of complex numbers, you base the comparison on the real part, and if they are equal, then you base the comparison on the imaginary part?  The usual way to do it is to compare the magnitude of the two numbers.

What you are suggesting produces an ordering, but not useful for the domain where complex numbers are typically used.

Or am I just being completely mislead by my lack of Perl6 comprehension?]]></description>
		<content:encoded><![CDATA[<p>What the hell?  In the case of complex numbers, you base the comparison on the real part, and if they are equal, then you base the comparison on the imaginary part?  The usual way to do it is to compare the magnitude of the two numbers.</p>
<p>What you are suggesting produces an ordering, but not useful for the domain where complex numbers are typically used.</p>
<p>Or am I just being completely mislead by my lack of Perl6 comprehension?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
