spec/support/models/functions/baskara.rb in danica-2.1.1 vs spec/support/models/functions/baskara.rb in danica-2.2.0

- old
+ new

@@ -2,23 +2,23 @@ class Function::Baskara < Function variables :a, :b, :c private - def function - @function ||= numerator / denominator + def function_block + @function_block ||= numerator / denominator end def numerator - Negative.new(b) + PositiveNegative.new(SquaredRoot.new(delta)) + negative(b) + PositiveNegative.new(squared_root(delta)) end def denominator - Number.new(2) * a + number(2) * a end def delta - Power.new(b, 2) - Product.new(4, a, c) + power(b, 2) - product(4, a, c) end end end