Sha256: 2cf9c88da0182e5014a505a84b3c15ca17c20aad11010b3fdb1d11e9b762b28e

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'rubygems'
require 'spec'
require 'mpfr'
require 'mpfi'
require "#{File.dirname(File.expand_path(__FILE__))}/generate_number_module.rb"


describe MPFI, "when calculating mathematical functions" do
  it "should not raise error" do
    MPFR.set_default_prec(256)
    num = MPFI.new('4.2184930258398098')
    # p MPFI::Math.sqr(num)
    # p MPFI::Math.sqrt(num)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-mpfi-0.0.4 spec/mpfi/mpfi_math_functions_spec.rb
ruby-mpfi-0.0.3 spec/mpfi/mpfi_math_functions_spec.rb