Sha256: d18a4a576998f9136b8a4be4b2b3c0dfa9c79b128b73c523560837814facd63d
Contents?: true
Size: 343 Bytes
Versions: 8
Compression:
Stored size: 343 Bytes
Contents
require 'test/unit' require 'webget_ramp' class MathTest < Test::Unit::TestCase def test_ln 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
8 entries across 8 versions & 1 rubygems