Sha256: f0f9383c36a664369071f6fc5b367568f7bbc0e5064177faebd23028042d8f34
Contents?: true
Size: 383 Bytes
Versions: 7
Compression:
Stored size: 383 Bytes
Contents
require 'test/unit' require 'webget_ruby_ramp' class MathTest < Test::Unit::TestCase def test_ln assert_equal(0.0,Math.ln(1.0)) assert_equal(1.0,Math.ln(Math.exp(1.0))) end def test_logn assert_equal(1.0,Math.logn(3,3),'log of 3 base 3') assert_equal(2.0,Math.logn(9,3),'log of 9 base 3') assert_equal(3.0,Math.logn(27,3),'log of 27 base 3') end end
Version data entries
7 entries across 7 versions & 1 rubygems