Sha256: 37ba4c437531a12b3baab91284b4d48f448fc352935d1f0f3bfd6198b41ba658
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
module Dydx module Algebra module Set class Num < Base attr_accessor :n def initialize(n) @n = n end def differentiate(sym=:x) _(0) end alias_method :d, :differentiate def to_s @n.to_s end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dydx-0.0.2 | lib/dydx/algebra/set/num.rb |
dydx-0.0.1 | lib/dydx/algebra/set/num.rb |