Sha256: 67fb63a26a12109d1cf21acb8ac783dec437e3747c56794ff9a1ffed4ab062ba
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
# -*- coding: utf-8 -*- require 'minitest/autorun' require 'sixarm_ruby_ramp' class MathTest < Minitest::Test 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
4 entries across 4 versions & 1 rubygems