<br><div class="gmail_quote">On Tue, Oct 11, 2011 at 10:48 AM, Juan Vuletich <span dir="ltr"><<a href="mailto:juan@jvuletich.org">juan@jvuletich.org</a>></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 <<a href="mailto:juan@jvuletich.org" target="_blank">juan@jvuletich.org</a> <mailto:<a href="mailto:juan@jvuletich.org" target="_blank">juan@jvuletich.org</a>>> 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'm working on it (together with some other<br>
tweaks to #sqrt and friends I'll publish when finished).<br>
<br>
<br>
+1. I was just about to comment on that one :)<br>
<br>
It always bothered me that "-1 sqrt" wouldn't answer "1i". It seems like an incomplete implementation, being that we have the class Complex.<br>
At the time I "fixed" 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't think it is hackish... It is the usual way for dealing with cases the primitives can't deal. That's totally ok for me.<br></blockquote><div><br></div><div>Mmm... maybe I don'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'm trying to fix is that '4 sqrt' and '8 raisedTo: 1/3' 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) ----> 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'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>