Sha256: e8e1ec146b8811aeade2b18c2e58f00c321c3507244a9ba312f22871f63c8ed5

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module Danica
  class Function::Parabole < Function.build(:x) { Danica::Parabole.new }
  end
end

module Danica
  class Function::SaddleParabole < Function::Parabole
    variables :y

    def function_block
      super - power(y, 2)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danica-2.7.7 spec/support/models/function/parabole.rb
danica-2.7.6 spec/support/models/function/parabole.rb
danica-2.7.5 spec/support/models/function/parabole.rb