Sha256: 084af7ace8b079c90317be3ead23ecf3e33bb98677fd9488729e3f8c314cbbd7
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' describe Dydx do it 'has a version number' do expect(Dydx::VERSION).not_to be nil end it 'demo' do f(x, y) <= x + x * y + y expect(f(x, y)).to eq(x * (1 + y) + y) expect(f(a, 2)).to eq(3 * a + 2) expect(f(1, a + b)).to eq(1 + 2 * ( a + b )) expect(f(1, 2)).to eq(5) expect(d/dx(f(x, y))).to eq(1 + y) g(x) <= sin(x) expect(d/dx(g(x))).to eq(cos(x)) expect(S(g(x), dx)[0, pi / 2]).to eq(1.0) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dydx-0.1.41421 | spec/dydx_spec.rb |
dydx-0.1.412 | spec/dydx_spec.rb |
dydx-0.1.4 | spec/dydx_spec.rb |