Sha256: 42e04d1c4e023784e50e6c4efbda241c24eb30397ba90a260820449c6b40f632

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

require 'active_model'

module Danica
  autoload :Builder,          'danica/builder'
  autoload :BaseOperations,   'danica/base_operations'
  autoload :VariablesHolder,  'danica/variables_holder'
  autoload :Common,           'danica/common'
  autoload :Number,           'danica/number'
  autoload :Negative,         'danica/negative'
  autoload :PositiveNegative, 'danica/positive_negative'
  autoload :Group,            'danica/group'
  autoload :Variable,         'danica/variable'
  autoload :Operator,         'danica/operator'
  autoload :Function,         'danica/function'
  autoload :Exception,        'danica/exception'
  autoload :Constant,         'danica/constant'

  autoload :Product,          'danica/product'
  autoload :Sum,              'danica/sum'
  autoload :Division,         'danica/division'
  autoload :Power,            'danica/power'
  autoload :SquaredRoot,      'danica/squared_root'
  autoload :Exponential,      'danica/exponential'
  autoload :Sin,              'danica/sin'
  autoload :Cos,              'danica/cos'
  autoload :DSL,              'danica/dsl'

  class << self
    delegate :build, to: :builder

    def builder
      @builder ||= Builder.new
    end
  end

  E = Constant.new(Math::E, :e, 'exp(1)')
  PI =  Constant.new(Math::PI, '\pi', :pi)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.2.1 lib/danica.rb
danica-2.2.0 lib/danica.rb