module Danica class Function::Baskara < Function.build(:a, :b, :c) { numerator / denominator } private def numerator negative(b) + PositiveNegative.new(squared_root(delta)) end def denominator number(2) * a end def delta power(b, 2) - product(4, a, c) end end end