Guard against glibc pow() bugs
Guard against glibc pow() bugs

According to the BUGS section of `man 3 pow`:

If x is negative, then large negative or positive y values yield a NaN as the function result, with
errno  set to EDOM, and an invalid (FE_INVALID) floating-point exception.  For example, with pow(),
one sees this behavior when the absolute value of y is greater than about 9.223373e18.

See also http://sources.redhat.com/bugzilla/show_bug.cgi?id=3866

jvshahid/rubyspec,ericmeyer/rubyspec,bl4ckdu5t/rubyspec,DawidJanczak/rubyspec,kachick/rubyspec,yous/rubyspec,DavidEGrayson/rubyspec,yaauie/rubyspec,kachick/rubyspec,alex/rubyspec,no6v/rubyspec,eregon/rubyspec,amarshall/rubyspec,ruby/spec,iainbeeston/rubyspec,Aesthetikx/rubyspec,roshats/rubyspec,josedonizetti/rubyspec,yaauie/rubyspec,jstepien/rubyspec,alindeman/rubyspec,no6v/rubyspec,sferik/rubyspec,teleological/rubyspec,askl56/rubyspec,DawidJanczak/rubyspec,DavidEGrayson/rubyspec,markburns/rubyspec,nevir/rubyspec,alindeman/rubyspec,lucaspinto/rubyspec,kidaa/rubyspec,Zoxc/rubyspec,mrkn/rubyspec,alexch/rubyspec,ruby/spec,wied03/rubyspec,yous/rubyspec,rdp/rubyspec,mbj/rubyspec,wied03/rubyspec,kachick/rubyspec,ruby/rubyspec,wied03/rubyspec,teleological/rubyspec,alex/rubyspec,agrimm/rubyspec,bomatson/rubyspec,Aesthetikx/rubyspec,iliabylich/rubyspec,scooter-dangle/rubyspec,rkh/rubyspec,sferik/rubyspec,sgarciac/spec,Zoxc/rubyspec,neomadara/rubyspec,ruby/rubyspec,flavio/rubyspec,jstepien/rubyspec,scooter-dangle/rubyspec,saturnflyer/rubyspec,shirosaki/rubyspec,yb66/rubyspec,sgarciac/spec,ericmeyer/rubyspec,ruby/spec,iainbeeston/rubyspec,kidaa/rubyspec,eregon/rubyspec,nobu/rubyspec,atambo/rubyspec,nobu/rubyspec,neomadara/rubyspec,jannishuebl/rubyspec,mrkn/rubyspec,JuanitoFatas/rubyspec,bomatson/rubyspec,agrimm/rubyspec,markburns/rubyspec,amarshall/rubyspec,flavio/rubyspec,mbj/rubyspec,roshats/rubyspec,BanzaiMan/rubyspec,sgarciac/spec,eregon/rubyspec,lucaspinto/rubyspec,shirosaki/rubyspec,benlovell/rubyspec,askl56/rubyspec,benlovell/rubyspec,chesterbr/rubyspec,chesterbr/rubyspec,nevir/rubyspec,alexch/rubyspec,bl4ckdu5t/rubyspec,josedonizetti/rubyspec,rkh/rubyspec,nobu/rubyspec,jannishuebl/rubyspec,JuanitoFatas/rubyspec,iliabylich/rubyspec,saturnflyer/rubyspec,yb66/rubyspec,rdp/rubyspec,jvshahid/rubyspec,BanzaiMan/rubyspec,atambo/rubyspec