Infinity is a very slippery concept, you can&#39;t compute with it like that.<br>You can compute various limits, though.<br>So, e.g., for a &gt; 0<br>&nbsp; lim x*a -&gt; Inf<br>&nbsp; x-&gt;Inf<br>and<br>&nbsp; lim x*0 -&gt; 0<br>&nbsp; x-&gt;Inf
<br>But<br>&nbsp; lim x*(1/x) -&gt; 1<br>&nbsp; x-&gt;Inf<br>And that last one would be &quot;Inf*0&quot; in the limit.&nbsp; In fact, you can make Inf*0 any number you like.&nbsp; So NaN is the sensible.<br><br>&nbsp; -- Lennart<br><br><div><span class="gmail_quote">
On 8/4/07, <b class="gmail_sendername">Andrew Coppin</b> &lt;<a href="mailto:andrewcoppin@btinternet.com">andrewcoppin@btinternet.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&gt;<br>&gt;&gt; Um... why would infinity * 0 be NaN? That doesn&#39;t make sense...<br>&gt; Infinity times anything is Infinity.&nbsp;&nbsp;Zero times anything is zero.&nbsp;&nbsp;So<br>&gt; what should Infinity * zero be?&nbsp;&nbsp;There isn&#39;t one right answer.&nbsp;&nbsp;In
<br>&gt; this case the &quot;morally correct&quot; answer is zero, but in other contexts<br>&gt; it might be Infinity or even some finite number other than zero.<br><br>I don&#39;t follow.<br><br>Infinity times any positive quantity gives positive infinity.
<br>Infinity times any negative quantity gives negative infinity.<br>Infinity times zero gives zero.<br><br>What&#39;s the problem?<br><br>&gt; Consider 0.0 / 0.0, which also evaluates to NaN.<br><br>Division by zero is *definitely* undefined. (The equation 0 * k = v has
<br>no solutions.)<br><br>_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">
http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br></blockquote></div><br>