On Thu, 1 May 2003, Dave Thomas wrote:
>    ruby -I. -rrational -rcomplex -e 'p 2**2'
> Now the strange question is, why does it work on Intel boxes but crash 
> on my ppc?

This is on an ordinary AMD K62-400 running Debian 3.1 :

ruby -r mathn -e 'p((-1/2)**3)'
/opt/lib/ruby/1.8/rational.rb:341:in `power!': stack level too deep
(SystemStackError)
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
         ... 3993 levels...
        from /opt/lib/ruby/1.8/rational.rb:342:in `power!'
        from /opt/lib/ruby/1.8/complex.rb:419:in `**'
        from /opt/lib/ruby/1.8/mathn.rb:168:in `**'
        from -e:1

________________________________________________________________
Mathieu Bouchard                       http://artengine.ca/matju