<br><div class="gmail_quote">On Tue, Oct 11, 2011 at 10:48 AM, Juan Vuletich <span dir="ltr">&lt;<a href="mailto:juan@jvuletich.org">juan@jvuletich.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Ricardo Moran wrote:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Tue, Oct 11, 2011 at 9:51 AM, Juan Vuletich &lt;<a href="mailto:juan@jvuletich.org" target="_blank">juan@jvuletich.org</a> &lt;mailto:<a href="mailto:juan@jvuletich.org" target="_blank">juan@jvuletich.org</a>&gt;&gt; wrote:<br>


<br>
    Juan Vuletich wrote:<br>
<br>
        Hi Folks,<br>
<br>
        Rodney Polkinghorne wrote:<br>
<br>
            ...<br>
<br>
            extra fact:<br>
            - Complex is absent from Cuis<br>
             <br>
<br>
        Not for long :) . I have already integrated it and will be in<br>
        next Cuis release. I think Complex belongs in the base system.<br>
<br>
<br>
    Oh, forgot to say. I also think that<br>
      -1 sqrt = 1i<br>
    should be true, and I&#39;m working on it (together with some other<br>
    tweaks to #sqrt and friends I&#39;ll publish when finished).<br>
<br>
<br>
+1. I was just about to comment on that one :)<br>
<br>
It always bothered me that &quot;-1 sqrt&quot; wouldn&#39;t answer &quot;1i&quot;. It seems like an incomplete implementation, being that we have the class Complex.<br>
At the time I &quot;fixed&quot; it by just relying on the fact that the sqrt primitive fails when the receiver is negative, but that solution seems very hackish. I wonder what your solution looks like? :)<br>
<br>
Cheers,<br>
Richo<br>
</blockquote>
<br></div></div>
I don&#39;t think it is hackish... It is the usual way for dealing with cases the primitives can&#39;t deal. That&#39;s totally ok for me.<br></blockquote><div><br></div><div>Mmm... maybe I don&#39;t mess enough with primitives to avoid feeling wrong about it :)</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
What I&#39;m trying to fix is that &#39;4 sqrt&#39; and &#39;8 raisedTo: 1/3&#39; answer Floats, when they should answer SmallIntegers.<br></blockquote><div><br></div><div>Nice! That would allow </div><div><br></div><div>

(4 sqrt) = (8 raisedTo: 1/3) ----&gt; true</div><div><br></div><div>What I would *really* like is some kind of symbolic algebra written entirely in Smalltalk. But I guess it&#39;s too much to ask, right? :)</div><div><br>

</div><div>Cheers,</div><div>Richo</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Cheers,<br><font color="#888888">
Juan Vuletich<br>
<br>
</font></blockquote></div><br>