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