Sha256: 50c2e6a35a4c645fe4f83b0702e539ee5ce6fa1a5c6a23fb448453ca63c6366e
Contents?: true
Size: 463 Bytes
Versions: 14
Compression:
Stored size: 463 Bytes
Contents
require 'spec_helper' describe Dydx::Algebra::Operator::Parts::Inverse do it{ expect(inverse(:x, :+).to_s).to eq('( - x )') } it{ expect(inverse(:x, :*).to_s).to eq('( 1 / x )') } it{ expect(inverse(:x, :+)).to eq(inverse(:x, :+)) } it{ expect(inverse(:x, :*)).to eq(inverse(:x, :*)) } it{ expect(:x - :x).to eq(e0) } it{ expect(:x / :x).to eq(e1) } it{ expect(inverse(:x, :+) + :x).to eq(e0) } it{ expect(inverse(:x, :*) * :x).to eq(e1) } end
Version data entries
14 entries across 14 versions & 1 rubygems