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