Sha256: 9922ea8c239e2d730e9159b89d0fd203ead0250658f9cefc89ee208d0a7e5a81
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'spec_helper' describe Dydx::Algebra::Set::Log2 do it { expect(log2(1)).to eq(_(0)) } it { expect(log2(2)).to eq(_(1)) } it { expect(log2(2 ^ :n)).to eq(:n) } it { expect(log2(3 ^ :n).to_s).to eq('( n * log2( 3 ) )') } describe '#to_s' do end describe '#differentiate' do it { expect(log2(:x).d(:x).to_s).to eq('( 1 / ( x * log( 2 ) ) )') } end describe 'Calculate' do end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dydx-0.1.31 | spec/lib/algebra/set/log2_spec.rb |