<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: distinguishing usual numbers, infinities and NaN</title>
	<link>http://uucode.com/blog/2007/05/30/distinguishing-usual-numbers-infinities-and-nan/</link>
	<description>advocating olpa's open source developments</description>
	<pubDate>Thu, 20 Nov 2008 09:06:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: olpa</title>
		<link>http://uucode.com/blog/2007/05/30/distinguishing-usual-numbers-infinities-and-nan/#comment-8280</link>
		<dc:creator>olpa</dc:creator>
		<pubDate>Fri, 01 Jun 2007 02:51:55 +0000</pubDate>
		<guid>http://uucode.com/blog/2007/05/30/distinguishing-usual-numbers-infinities-and-nan/#comment-8280</guid>
		<description>I've got an e-mail reply from Kalle Olavi Niemitalo &lt;kon iki fi&gt;:

--
Apparently R5RS does not require support for infinities,
but if there is such support, I think these should work:

(define (nan? x) (not (= x x)))
(define (inf? x) (and (nan? (- x x)) (not (nan? x))))

I like how there are no numerals in these.
--

It's a nice idea, I didn't thought about it.

Unfortunately, SISC interpreter has a bug. (= (/ 0.0 0.0) (/ 0.0 0.0)) is #t.&lt;/kon&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got an e-mail reply from Kalle Olavi Niemitalo <kon iki fi>:</p>
<p>&#8211;<br />
Apparently R5RS does not require support for infinities,<br />
but if there is such support, I think these should work:</p>
<p>(define (nan? x) (not (= x x)))<br />
(define (inf? x) (and (nan? (- x x)) (not (nan? x))))</p>
<p>I like how there are no numerals in these.<br />
&#8211;</p>
<p>It&#8217;s a nice idea, I didn&#8217;t thought about it.</p>
<p>Unfortunately, SISC interpreter has a bug. (= (/ 0.0 0.0) (/ 0.0 0.0)) is #t.</kon></p>
]]></content:encoded>
	</item>
</channel>
</rss>
