Sha256: c4a0f1012ed4086bb44d2a94fd1428a54326164baa76a391f3f28b4e8f4b9ee6

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

describe Dydx::Algebra::Set::Log10 do
  it { expect(log10(1)).to eq(_(0)) }
  it { expect(log10(10)).to eq(_(1)) }
  it { expect(log10(10 ^ :n)).to eq(:n) }
  it { expect(log10(3 ^ :n).to_s).to eq('( n * log10( 3 ) )') }

  describe '#to_s' do
  end
  describe '#differentiate' do
    it { expect(log10(:x).d(:x).to_s).to eq('( 1 / ( x * log( 10 ) ) )') }
  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/log10_spec.rb