Sha256: 698a0882053d483074fa4f626a2730a5e26c7267f4600c08a8eace3e9a2a7c7c

Contents?: true

Size: 437 Bytes

Versions: 26

Compression:

Stored size: 437 Bytes

Contents

#!/usr/bin/env ruby

require 'gmp'

a=GMP::F.new -1
b=GMP::F.new 0
c=GMP::F.new 0.1
d=GMP::F.new 1
e=GMP::F.new 2
f=GMP::F.new 4
g=GMP::F.new 10

print "exp:\n"
[a,b,c,d,e,f,g].map{|x| p x.exp}

print "log:\n"
[c,d,e,f,g].map{|x| p x.log}

print "log2:\n"
[c,d,e,f,g].map{|x| p x.log2}

print "log10:\n"
[c,d,e,f,g].map{|x| p x.log10}

print "log1p:\n"
[c,d,e,f,g].map{|x| p x.log1p}

print "expm1:\n"
[a,b,c,d,e,f,g].map{|x| p x.expm1}

Version data entries

26 entries across 26 versions & 1 rubygems

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