From: Jason Foreman Date: 2005-05-28T05:14:50+09:00 Subject: Re: A different perspective on Ruby. On 5/27/05, Jonas Hartmann wrote: > [...] > n is an Integer object and sqrt is a method on that object so it must > be n.sqrt - you could as well implement the third square root of 8 by > typing 8.sqrt 3 (I am not such a big math-guy... so maybe you could > just send over the whole exponent - 8^(1/2) => 8.sqrt is equal to > 8.sqrt .5 is equal to 8.sqrt(0.5) is equal to 8.sqrt(1/2) and so on... > well just my ideas on sqrt method - exuse me if its bs ;-( I assume by "third square root" that you mean cube root? To me, third square root would mean sqrt(sqrt(sqrt(8))). I think you'd want something like 8.root(3), not 8.sqrt(3). Square root has a very precise meaning. Also beware, 1/2 == 0 because of integer math. The article does raise some interesting questions, but certainly lends itself no credibility due to the presentation. And I'm certainly not going to become a 'Pythonista' due to this kids rant. You can easily pick a few elements of any language and pick on them to your hearts content, but it really just comes down to getting things done, and Ruby does that for me. Jason