Sha256: 2b36b95991049297aa4143cd96c83b4a7eb781698fbb3c785e1351d13134b3b6

Contents?: true

Size: 197 Bytes

Versions: 26

Compression:

Stored size: 197 Bytes

Contents

#!/usr/bin/env ruby

require 'gmp'

a = GMP::F.new 0
b = GMP::F.new 1
c = b / a
d = -c
e = a * c

[a,b,c,d,e].map{|x| p [x, x.finite?, x.infinite?] }
[a,b,c,d,e].map{|x| p [x, x.number?, x.nan?] }

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
gmp-0.7.43 test/test-22.rb
gmp-0.7.19 test/test-22.rb
gmp-0.6.47 test/test-22.rb
gmp-0.6.43 test/test-22.rb
gmp-0.6.41 test/test-22.rb
gmp-0.6.31 test/test-22.rb
gmp-0.6.19 test/test-22.rb
gmp-0.6.17 test/test-22.rb
gmp-0.6.13 test/test-22.rb
gmp-0.6.7 test/test-22.rb
gmp-0.5.47 test/test-22.rb
gmp-0.5.41 test/test-22.rb
gmp-0.5.41-x86-mingw32 test/test-22.rb
gmp-0.5.23 test/test-22.rb
gmp-0.5.23-x86-mingw32 test/test-22.rb
gmp-0.5.3 test/test-22.rb
gmp-0.5.3-x86-mingw32 test/test-22.rb
gmp-0.4.7-x86_64-linux test/test-22.rb
gmp-0.4.7 test/test-22.rb
gmp-0.4.7-x86-mingw32 test/test-22.rb