Sha256: 5e87e10944e70214c251280d0272b898cbfe41c52a6b21f795b215b97a030574

Contents?: true

Size: 393 Bytes

Versions: 17

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'

describe Dydx::Algebra::Set::Cos do
  it{ expect(cos(0).to_s).to eq('1') }
  it{ expect(cos(pi).to_s).to eq('-1') }
  it{ expect(cos(2 * pi).to_s).to eq('1') }

  describe '#to_s' do
    it{ expect(cos(:x).to_s).to eq('cos( x )') }
  end

  describe '#differentiate' do
     it{ expect(cos(:x).d.to_s).to eq('( - sin( x ) )') }
  end

  describe 'Calculate' do
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dydx-0.1.31 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.3 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.29 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.28 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.25 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.2 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.1 spec/lib/algebra/set/cos_spec.rb
dydx-0.1.0 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.9 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.8 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.7 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.6 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.5 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.4 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.3 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.2 spec/lib/algebra/set/cos_spec.rb
dydx-0.0.1 spec/lib/algebra/set/cos_spec.rb